Package com.batch.android
Enum BatchMessage.Format
- java.lang.Object
-
- java.lang.Enum<BatchMessage.Format>
-
- com.batch.android.BatchMessage.Format
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BatchMessage.Format>
- Enclosing class:
- BatchMessage
public static enum BatchMessage.Format extends java.lang.Enum<BatchMessage.Format>
Formats that can be contained into a BatchMessage.This list might evolve in the future
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALERTALERT is simple a system alertBANNERBANNER is a banner that can be attached on top or bottom of your screenFULLSCREENFULLSCREEN is the fullscreen formatIMAGEIMAGE is a modal popup that simply shows an image in an alert (detached) or fullscreen (attached) styleMODALBANNER is a popup that takes over the screen modally, like a system alert but with a custom styleUNKNOWNUNKNOWN 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.WEBVIEWWEBVIEW is a fullscreen format that load an URL into a WebView
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BatchMessage.FormatvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BatchMessage.Format[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final BatchMessage.Format 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
public static final BatchMessage.Format ALERT
ALERT is simple a system alert
-
FULLSCREEN
public static final BatchMessage.Format FULLSCREEN
FULLSCREEN is the fullscreen format
-
BANNER
public static final BatchMessage.Format BANNER
BANNER is a banner that can be attached on top or bottom of your screen
-
MODAL
public static final BatchMessage.Format MODAL
BANNER is a popup that takes over the screen modally, like a system alert but with a custom style
-
IMAGE
public static final BatchMessage.Format IMAGE
IMAGE is a modal popup that simply shows an image in an alert (detached) or fullscreen (attached) style
-
WEBVIEW
public static final BatchMessage.Format WEBVIEW
WEBVIEW is a fullscreen format that load an URL into a WebView
-
-
Method Detail
-
values
public static BatchMessage.Format[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BatchMessage.Format c : BatchMessage.Format.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BatchMessage.Format valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-