getSelfHandledInApps

fun getSelfHandledInApps(context: Context, onSuccess: SuccessCallback<SelfHandledCampaignsData>, onFailure: FailureCallback = FailureCallback {})

Fetch Self Handled campaigns for the account configured as default.

Since

9.10.0

Parameters

context

Instance of Context

onSuccess

Callback invoked with SelfHandledCampaignsData when campaigns are available

onFailure

Callback invoked with Throwable when an error occurs


fun getSelfHandledInApps(context: Context, workspaceId: String, onSuccess: SuccessCallback<SelfHandledCampaignsData>, onFailure: FailureCallback = FailureCallback {})

Fetch Self Handled campaigns 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 SelfHandledCampaignsData when campaigns are 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

getSelfHandledInApps(Context, onSuccess, onFailure)

Fetch Self Handled campaigns for the account configured as default.

Since

8.6.0

Parameters

context

Instance of Context


Deprecated

This function is deprecated and will be removed in 11.0.0

Replace with

getSelfHandledInApps(Context, String, onSuccess, onFailure)

Fetch Self Handled campaigns for the given account.

Since

8.6.0

Parameters

context

Instance of Context

workspaceId

Account identifier, WorkSpaceId on the MoEngage Dashboard.