loadVcardAttachment

open fun loadVcardAttachment(    @NonNull context: Context,     @NonNull intent: Intent,     @Nullable callback: IAttachmentLoaderCallback)

Call this method to load a contact presented by com.streamwide.smartms.lib.core.data.item.VCardAttachment.

This method can be executed in a main thread since it is already done in an AsyncTask.

This method create an vcf file from a specific contact.

Parameters

context

The application context

intent

An intent that contains all necessary data(CONTACT_NAME, CONTACT_PHOTO_URI, ...) to extract a contact attachment, data are delivered in the com.streamwide.smartms.lib.core.data.item.VCardAttachment

callback

It will be invoked when the contact has been successfully loaded or when an error has occurred. Other details are delivered in the IAttachmentLoaderCallback callback.


open fun loadVcardAttachment(    @NonNull context: Context,     @Nullable lifecycle: Lifecycle,     @NonNull intent: Intent,     @Nullable callback: IAttachmentLoaderCallback)

Call this method to load a contact presented by com.streamwide.smartms.lib.core.data.item.VCardAttachment.

This method can be executed in a main thread since it is already done in an AsyncTask.

This method create an vcf file from a specific contact.

Parameters

context

The application context

lifecycle

The application lifecycle

intent

An intent that contains all necessary data(CONTACT_NAME, CONTACT_PHOTO_URI, ...) to extract a contact attachment, data are delivered in the com.streamwide.smartms.lib.core.data.item.VCardAttachment

callback

It will be invoked when the contact has been successfully loaded or when an error has occurred. Other details are delivered in the IAttachmentLoaderCallback callback.