deleteMessage

fun deleteMessage(context: Context, inboxMessage: InboxMessage)

Deletes the given message from inbox. This API deletes the message for the account configured as default.

Since

1.0.00

Parameters

context

instance of Context

inboxMessage

instance of InboxMessage

Throws

if the SDK is not initialized.


fun deleteMessage(context: Context, inboxMessage: InboxMessage, appId: String)

Deletes the given message from inbox. This API deletes the message for the given account.

Since

2.0.0

Parameters

context

instance of Context

inboxMessage

instance of InboxMessage

appId

Account identifier, APP ID on the MoEngage Dashboard.

Throws

if the SDK is not initialized.