public class NetmeraInAppMessageBroadcastReceiver
extends android.content.BroadcastReceiver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_INAPP_MESSAGE_DISMISSED
The action of the Intent when an InApp message has been dismissed.
|
static java.lang.String |
ACTION_INAPP_MESSAGE_OPENED
The action of the Intent when an InApp message has been opened.
|
static java.lang.String |
ACTION_INAPP_MESSAGE_SHOWN
The action of the Intent when an InApp message has been shown.
|
static java.lang.String |
IN_APP_MESSAGE_KEY |
Constructor and Description |
---|
NetmeraInAppMessageBroadcastReceiver() |
Modifier and Type | Method and Description |
---|---|
void |
onInAppMessageDismissed(android.content.Context context,
NetmeraInAppMessage netmeraInAppMessage)
Called when InApp message was dismissed.
|
void |
onInAppMessageOpen(android.content.Context context,
NetmeraInAppMessage netmeraInAppMessage)
Called when InApp message was opened.
|
void |
onInAppMessageShown(android.content.Context context,
NetmeraInAppMessage netmeraInAppMessage)
Called when InApp message was shown.
|
void |
onReceive(android.content.Context context,
android.content.Intent intent)
Delegates the generic
onReceive event to a notification lifecycle event. |
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public static final java.lang.String IN_APP_MESSAGE_KEY
public static final java.lang.String ACTION_INAPP_MESSAGE_SHOWN
public static final java.lang.String ACTION_INAPP_MESSAGE_OPENED
public static final java.lang.String ACTION_INAPP_MESSAGE_DISMISSED
public NetmeraInAppMessageBroadcastReceiver()
public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
event to a notification lifecycle event.
Subclasses are advised to override the lifecycle events and not this method.onReceive
in class android.content.BroadcastReceiver
context
- The Context
in which the receiver is running.intent
- An Intent
containing the data of the current In App message.onInAppMessageShown(Context, NetmeraInAppMessage)
,
onInAppMessageOpen(Context, NetmeraInAppMessage)
,
onInAppMessageDismissed(Context, NetmeraInAppMessage)
public void onInAppMessageShown(android.content.Context context, NetmeraInAppMessage netmeraInAppMessage)
context
- The Context
in which the receiver is running.netmeraInAppMessage
- An NetmeraInAppMessage
which is shown to the enduser.public void onInAppMessageOpen(android.content.Context context, NetmeraInAppMessage netmeraInAppMessage)
context
- The Context
in which the receiver is running.netmeraInAppMessage
- An NetmeraInAppMessage
which was opened by the enduser.public void onInAppMessageDismissed(android.content.Context context, NetmeraInAppMessage netmeraInAppMessage)
context
- The Context
in which the receiver is running.netmeraInAppMessage
- An NetmeraInAppMessage
which was dismissed by the enduser.