loadCalendarAttachment

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

Call this method to load a event from Calendar presented by com.streamwide.smartms.lib.core.data.item.CalendarAttachment.

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

This method create an ics file.

Parameters

context

The application context

intent

An intent that contains all necessary data to extract the image attachment.

callback

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


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

Call this method to load a event from Calendar presented by com.streamwide.smartms.lib.core.data.item.CalendarAttachment.

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

This method create an ics file.

Parameters

context

The application context

lifecycle

The application lifecycle

intent

An intent that contains all necessary data to extract the image attachment.

callback

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