Class InAppMessage
java.lang.Object
com.wonderpush.sdk.inappmessaging.model.InAppMessage
- Direct Known Subclasses:
BannerMessage
,CardMessage
,ImageOnlyMessage
,ModalMessage
Encapsulates an In App Message.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
static enum
static interface
static interface
-
Constructor Summary
ConstructorsConstructorDescriptionInAppMessage
(com.wonderpush.sdk.NotificationMetadata notificationMetadata, MessageType messageType, org.json.JSONObject data, com.wonderpush.sdk.inappmessaging.display.internal.IamAnimator.EntryAnimation entryAnimation, com.wonderpush.sdk.inappmessaging.display.internal.IamAnimator.ExitAnimation exitAnimation) -
Method Summary
Modifier and TypeMethodDescriptionabstract InAppMessage.ButtonType
getButtonType
(List<com.wonderpush.sdk.ActionModel> actions) org.json.JSONObject
getData()
com.wonderpush.sdk.inappmessaging.display.internal.IamAnimator.EntryAnimation
com.wonderpush.sdk.inappmessaging.display.internal.IamAnimator.ExitAnimation
Gets theMessageType
of the messagecom.wonderpush.sdk.NotificationMetadata
Gets theNotificationMetadata
of the message
-
Constructor Details
-
InAppMessage
public InAppMessage(com.wonderpush.sdk.NotificationMetadata notificationMetadata, MessageType messageType, org.json.JSONObject data, @NonNull com.wonderpush.sdk.inappmessaging.display.internal.IamAnimator.EntryAnimation entryAnimation, @NonNull com.wonderpush.sdk.inappmessaging.display.internal.IamAnimator.ExitAnimation exitAnimation)
-
-
Method Details
-
getMessageType
Gets theMessageType
of the message -
getNotificationMetadata
@Nullable public com.wonderpush.sdk.NotificationMetadata getNotificationMetadata()Gets theNotificationMetadata
of the message -
getData
@NonNull public org.json.JSONObject getData() -
getButtonType
-
getEntryAnimation
public com.wonderpush.sdk.inappmessaging.display.internal.IamAnimator.EntryAnimation getEntryAnimation() -
getExitAnimation
public com.wonderpush.sdk.inappmessaging.display.internal.IamAnimator.ExitAnimation getExitAnimation()
-