-
- All Implemented Interfaces:
-
com.batch.android.UserActionSource
public abstract class BatchMessage implements UserActionSource
Model representing a Batch Messaging message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumBatchMessage.FormatFormats that can be contained into a BatchMessage.
This list might evolve in the future
-
Field Summary
Fields Modifier and Type Field Description public final static StringMESSAGING_EXTRA_PAYLOAD_KEY
-
Method Summary
Modifier and Type Method Description voidwriteToBundle(@NonNull() Bundle bundle)voidwriteToIntent(@NonNull() Intent intent)static BatchMessagegetMessageForBundle(@NonNull() Bundle bundle)BatchMessage.FormatgetFormat()Returns the format of the displayable message, if any. -
-
Method Detail
-
writeToBundle
void writeToBundle(@NonNull() Bundle bundle)
-
writeToIntent
void writeToIntent(@NonNull() Intent intent)
-
getMessageForBundle
static BatchMessage getMessageForBundle(@NonNull() Bundle bundle)
-
getFormat
BatchMessage.Format getFormat()
Returns the format of the displayable message, if any.
You should cache this result rather than access the getter multiple times, as it involvessome computation.
Note: This getter bypasses most of the checks of the message's internal representation.Having a valid format returned here does not mean that other operations(such as loadFragment) will succeed.
-
-
-
-