Batch Android SDK
Toggle table of contents
3.0.0
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
Batch Android SDK
Batch Android SDK
/
com.batch.android
/
BatchInAppMessage
Batch
In
App
Message
open
class
BatchInAppMessage
:
BatchMessage
,
InAppMessageUserActionSource
A subclass of BatchMessage that represents an In-App message
Members
Constructors
Batch
In
App
Message
Link copied to clipboard
constructor
(
@
Nullable
campaignToken
:
String
,
@
NonNull
campaignID
:
String
,
@
NonNull
eventData
:
JSONObject
,
@
NonNull
landingPayload
:
JSONObject
,
@
NonNull
customPayload
:
JSONObject
)
Types
Content
Link copied to clipboard
interface
Content
Interface defining a BatchInAppMessage content model object.
Properties
campaign
Token
Link copied to clipboard
@get:
Nullable
val
campaignToken
:
String
custom
Payload
Link copied to clipboard
@get:
NonNull
val
customPayload
:
JSONObject
KIND
Link copied to clipboard
val
KIND
:
String
=
"inapp_campaign"
MESSAGING_
EXTRA_
PAYLOAD_
KEY
Link copied to clipboard
val
MESSAGING_EXTRA_PAYLOAD_KEY
:
String
=
"com.batch.messaging.payload"
Key to retrieve the messaging payload (if applicable) from an extra
Functions
get
MEPContent
Link copied to clipboard
@
Nullable
open
fun
getMEPContent
(
)
:
BatchInAppMessage.Content
Get an In-App Message's visual contents.
get
Message
For
Bundle
Link copied to clipboard
open
fun
getMessageForBundle
(
@
NonNull
bundle
:
Bundle
)
:
BatchMessage
write
To
Bundle
Link copied to clipboard
open
fun
writeToBundle
(
@
NonNull
bundle
:
Bundle
)
write
To
Intent
Link copied to clipboard
open
fun
writeToIntent
(
@
NonNull
intent
:
Intent
)