Package com.batch.android
Enum Class BatchMessage.Format
- All Implemented Interfaces:
Serializable
,Comparable<BatchMessage.Format>
,java.lang.constant.Constable
- Enclosing class:
- BatchMessage
Formats that can be contained into a BatchMessage.
This list might evolve in the future
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionALERT is simple a system alertBANNER is a banner that can be attached on top or bottom of your screenFULLSCREEN is the fullscreen formatIMAGE is a modal popup that simply shows an image in an alert (detached) or fullscreen (attached) styleBANNER is a popup that takes over the screen modally, like a system alert but with a custom styleUNKNOWN means that the message is invalid and does not contain any displayable message, or that the format is unknown to this version of the SDK, and might be available in a newer one.WEBVIEW is a fullscreen format that load an URL into a WebView -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchMessage.Format
Returns the enum constant of this class with the specified name.static BatchMessage.Format[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
UNKNOWN means that the message is invalid and does not contain any displayable message, or that the format is unknown to this version of the SDK, and might be available in a newer one. -
ALERT
ALERT is simple a system alert -
FULLSCREEN
FULLSCREEN is the fullscreen format -
BANNER
BANNER is a banner that can be attached on top or bottom of your screen -
MODAL
BANNER is a popup that takes over the screen modally, like a system alert but with a custom style -
IMAGE
IMAGE is a modal popup that simply shows an image in an alert (detached) or fullscreen (attached) style -
WEBVIEW
WEBVIEW is a fullscreen format that load an URL into a WebView
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-