loadUserSettingAttachment

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

Call this method to load user's settings presented by com.streamwide.smartms.lib.core.data.item.SettingAttachment.

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

Parameters

context

The application context.

intent

An intent that contains all necessary data to extract settings.

callback

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


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

Call this method to load user's settings presented by com.streamwide.smartms.lib.core.data.item.SettingAttachment.

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

Parameters

context

The application context.

lifecycle

The application lifecycle.

intent

An intent that contains all necessary data to extract settings.

callback

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