Package com.batch.android
Class BatchLandingMessage
java.lang.Object
com.batch.android.BatchMessage
com.batch.android.BatchLandingMessage
- All Implemented Interfaces:
PushUserActionSource
,UserActionSource
A subclass of BatchMessage that represents a push landing message
-
Nested Class Summary
Nested classes/interfaces inherited from class com.batch.android.BatchMessage
BatchMessage.Format
-
Field Summary
Fields inherited from class com.batch.android.BatchMessage
MESSAGING_EXTRA_PAYLOAD_KEY
-
Constructor Summary
ModifierConstructorDescriptionprotected
BatchLandingMessage
(Bundle rawPayload, JSONObject parsedLanding) -
Method Summary
Modifier and TypeMethodDescriptionprotected Bundle
protected JSONObject
getJSON()
protected String
getKind()
boolean
Whether this landing message has been triggered from an inbox notification through the methodBatchInboxNotificationContent#displayLandingMessage
.Methods inherited from class com.batch.android.BatchMessage
getFormat, getMessageForBundle, writeToBundle, writeToIntent
-
Field Details
-
KIND
- See Also:
-
-
Constructor Details
-
BatchLandingMessage
-
-
Method Details
-
getJSON
- Specified by:
getJSON
in classBatchMessage
-
getKind
- Specified by:
getKind
in classBatchMessage
-
getBundleRepresentation
- Specified by:
getBundleRepresentation
in classBatchMessage
-
getPushBundle
- Specified by:
getPushBundle
in interfacePushUserActionSource
-
isDisplayedFromInbox
public boolean isDisplayedFromInbox()Whether this landing message has been triggered from an inbox notification through the methodBatchInboxNotificationContent#displayLandingMessage
.- Returns:
- true if displayed from inbox, false if from a push notification.
-