-
- All Implemented Interfaces:
-
com.batch.android.InAppMessageUserActionSource,com.batch.android.UserActionSource
public class BatchInAppMessage extends BatchMessage implements InAppMessageUserActionSource
A subclass of BatchMessage that represents an In-App message
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBatchInAppMessage.ContentInterface defining a BatchInAppMessage content model object.See classes implementing this interface to learn more.
-
Field Summary
Fields Modifier and Type Field Description public final static StringKINDprivate JSONObjectcustomPayloadprivate StringcampaignToken
-
Constructor Summary
Constructors Constructor Description BatchInAppMessage(String campaignToken, String campaignID, JSONObject eventData, JSONObject landingPayload, JSONObject customPayload)
-
Method Summary
Modifier and Type Method Description JSONObjectgetCustomPayload()StringgetCampaignToken()Get the campaign token. synchronized BatchInAppMessage.ContentgetContent()Get an In-App Message's visual contents. -
-
Constructor Detail
-
BatchInAppMessage
BatchInAppMessage(String campaignToken, String campaignID, JSONObject eventData, JSONObject landingPayload, JSONObject customPayload)
-
-
Method Detail
-
getCustomPayload
@NonNull() JSONObject getCustomPayload()
-
getCampaignToken
@Nullable() String getCampaignToken()
Get the campaign token. This is the same token as you see when opening the In-App Campaign in your browser, when on the dashboard.
Can be null.
-
getContent
@Nullable() synchronized BatchInAppMessage.Content getContent()
Get an In-App Message's visual contents.
Since an In-App message's contents can change a lot between formats, you will need to cast this toone of the classes implementing BatchInAppMessage.Content, such as BatchAlertContent, BatchInterstitialContent, BatchBannerContent, BatchImageContent or BatchWebViewContentMore types might be added in the future, so don't make any assumptions on the instance returned.
-
-
-
-