payload From Bundle
Attempt to extract the Batch Push data contained within the specified Bundle. This is usually the method you want to use when reading this payload from an activity opened by Batch, or when you wrote an existing BatchPushPayload to a Bundle/Intent extras using writeToBundle / writeToIntentExtras.
Return
A BatchPushPayload instance.
Parameters
bundle
Bundle containing Batch Push data. Parsed data is read from the key defined by PAYLOAD_KEY.
Throws
Thrown if the argument doesn't contain valid Batch Push data