Package com.batch.android
Enum Batch.EventDispatcher.Type
- java.lang.Object
-
- java.lang.Enum<Batch.EventDispatcher.Type>
-
- com.batch.android.Batch.EventDispatcher.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Batch.EventDispatcher.Type>
- Enclosing class:
- Batch.EventDispatcher
public static enum Batch.EventDispatcher.Type extends java.lang.Enum<Batch.EventDispatcher.Type>
Represents the type of the dispatched event inBatchEventDispatcher.dispatchEvent(Type, Payload). Declared under Batch.EventDispatcher to avoid ambiguity withBatchEventData.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MESSAGING_AUTO_CLOSEMESSAGING_CLICKMESSAGING_CLOSEMESSAGING_CLOSE_ERRORMESSAGING_SHOWMESSAGING_WEBVIEW_CLICKNOTIFICATION_DISMISSNOTIFICATION_DISPLAYNOTIFICATION_OPEN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisMessagingEvent()booleanisNotificationEvent()static Batch.EventDispatcher.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Batch.EventDispatcher.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOTIFICATION_DISPLAY
public static final Batch.EventDispatcher.Type NOTIFICATION_DISPLAY
-
NOTIFICATION_DISMISS
public static final Batch.EventDispatcher.Type NOTIFICATION_DISMISS
-
NOTIFICATION_OPEN
public static final Batch.EventDispatcher.Type NOTIFICATION_OPEN
-
MESSAGING_SHOW
public static final Batch.EventDispatcher.Type MESSAGING_SHOW
-
MESSAGING_CLOSE
public static final Batch.EventDispatcher.Type MESSAGING_CLOSE
-
MESSAGING_AUTO_CLOSE
public static final Batch.EventDispatcher.Type MESSAGING_AUTO_CLOSE
-
MESSAGING_CLOSE_ERROR
public static final Batch.EventDispatcher.Type MESSAGING_CLOSE_ERROR
-
MESSAGING_CLICK
public static final Batch.EventDispatcher.Type MESSAGING_CLICK
-
MESSAGING_WEBVIEW_CLICK
public static final Batch.EventDispatcher.Type MESSAGING_WEBVIEW_CLICK
-
-
Method Detail
-
values
public static Batch.EventDispatcher.Type[] 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 (Batch.EventDispatcher.Type c : Batch.EventDispatcher.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Batch.EventDispatcher.Type 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
-
isNotificationEvent
public boolean isNotificationEvent()
-
isMessagingEvent
public boolean isMessagingEvent()
-
-