getSelfHandledInApp

fun getSelfHandledInApp(context: Context, onSuccess: SuccessCallback<SelfHandledCampaignData?>, onFailure: FailureCallback = FailureCallback {})

Fetch Self Handled campaign for the account configured as default.

Since

9.10.0

Parameters

context

Instance of Context

onSuccess

Callback invoked with SelfHandledCampaignData when campaign is available

onFailure

Callback invoked with Throwable when an error occurs


fun getSelfHandledInApp(context: Context, workspaceId: String, onSuccess: SuccessCallback<SelfHandledCampaignData?>, onFailure: FailureCallback = FailureCallback {})

Fetch Self Handled campaign for the given account.

Since

9.10.0

Parameters

context

Instance of Context

workspaceId

Account identifier, WorkSpaceId on the MoEngage Dashboard.

onSuccess

Callback invoked with SelfHandledCampaignData when campaign is available

onFailure

Callback invoked with Throwable when an error occurs


Deprecated

This function is deprecated and will be removed in 11.0.0

Replace with

getSelfHandledInApp(Context, onSuccess, onFailure)

Fetch Self Handled campaign for the account configured as default.

Since

6.0.0

Parameters

context

Instance of Context

listener

Deprecated

This function is deprecated and will be removed in 11.0.0

Replace with

getSelfHandledInApp(Context, String, onSuccess, onFailure)

Fetch Self Handled campaign for the given account.

Since

6.0.0

Parameters

context

Instance of Context

appId

Account identifier, APP ID on the MoEngage Dashboard.

listener