getCardsForCategoryAsync

fun getCardsForCategoryAsync(context: Context, category: String, listener: CardAvailableListener)

Returns a list of eligible cards to the listener for the instance configured as default. To fetch all cards irrespective of categories pass in the category as CARDS_CATEGORY_ALL

  • Data in the listener is null if no account is configured as default.

Since

1.0.0

Parameters

context

instance of Context

category

category for which cards should be fetched.

listener

fun getCardsForCategoryAsync(context: Context, category: String, appId: String, listener: CardAvailableListener)

Returns a list of eligible cards to the listener for the given account. To fetch all cards irrespective of categories pass in the category as CARDS_CATEGORY_ALL

Data returned in the listener is null if given account is not configured.

Since

1.0.0

Parameters

context

instance of Context

category

category for which cards should be fetched.

appId

Account identifier, APP ID on the MoEngage Dashboard.

listener