InAppMessageListener

open class InAppMessageListener

Interface definition for callback which is invoked at various stages of showing in-apps.

Author

Umang Chamaria

Since

10.0.00

Constructors

InAppMessageListener
Link copied to clipboard
fun InAppMessageListener()

Functions

onClosed
Link copied to clipboard
open fun onClosed(inAppCampaign: MoEInAppCampaign)

Callback triggered whenever in-app is closed.

onCustomAction
Link copied to clipboard
open fun onCustomAction(inAppCampaign: MoEInAppCampaign)

Callback for custom actionType on in-app click.

onNavigation
Link copied to clipboard
open fun onNavigation(inAppCampaign: MoEInAppCampaign): Boolean

Callback triggered whenever user clicks on any UI widget of the In-App with navigation actionType. SDK will only handle re-direction if the API returns false, if the API returns true it is the onus of the app to handle redirection.

onSelfHandledAvailable
Link copied to clipboard
open fun onSelfHandledAvailable(inAppCampaign: MoEInAppCampaign)

Callback triggered whenever a self handled campaign is available. Call MoEInAppCampaign.selfHandledCampaign to get the self handled triggerMeta. This callback is triggered on the main thread.

onShown
Link copied to clipboard
open fun onShown(inAppCampaign: MoEInAppCampaign)

Callback triggered whenever in-app is shown.