getNewCardCount

@WorkerThread
fun getNewCardCount(context: Context): NewCardCountData?

Returns the count of new cards available for the account configured as default or null if no account is configured as default.

Note: This API should not be called on the Main Thread as it queries the database.

Return

instance of NewCardCountData

Since

1.0.0

Parameters

context

instance of Context

Throws

if the SDK is not initialized.


@WorkerThread
@Nullable
fun getNewCardCount(context: Context, appId: String): NewCardCountData?

Returns the count of new cards available for the given account.

Data returned is null if given account is not configured.

Note: This API should not be called on the Main Thread as it queries the database.

Since

1.0.0

Parameters

context

instance of Context

appId

Account identifier, APP ID on the MoEngage Dashboard.

Throws

if the SDK is not initialized.