-
public final class IntentParserIntent parser to retrieve promo code and other data
-
-
Constructor Summary
Constructors Constructor Description IntentParser(Activity activity)Init a parser with the intent of the activity IntentParser(Intent intent)Init a parser with the given intent
-
Method Summary
Modifier and Type Method Description booleanhasPushPayload()booleancomesFromPush()Does this intent comes from a push notification booleanisOpenAlreadyTracked()Does the open has been already tracked voidmarkOpenAsAlreadyTracked()Mark the open as already tracked booleanhasLanding()Does this intent contains a Batch Messaging landing message booleanisLandingAlreadyShown()Does the landing message has been already shown voidmarkLandingAsAlreadyShown()Mark the open as already tracked BatchMessagegetLanding()Get the landing message and mark it as used StringgetPushId()Retrieve the push identifier from the intent. InternalPushDatagetPushData()Retrieve the push data from the intent. BundlegetPushBundle()static voidputPushExtrasToIntent(Bundle fullPayload, InternalPushData batchData, Intent launchIntent)Add push extras to an intent, to be picked up and tracked by Batch later static voidcopyExtras(@Nullable() Intent from, @Nullable() Intent to)Copy all of Batch's possible internal extras from an intent to another static voidcopyExtras(@Nullable() Bundle from, @Nullable() Bundle to)Copy all of Batch's possible internal extras from a bundle -
-
Method Detail
-
hasPushPayload
boolean hasPushPayload()
-
comesFromPush
boolean comesFromPush()
Does this intent comes from a push notification
-
isOpenAlreadyTracked
boolean isOpenAlreadyTracked()
Does the open has been already tracked
-
markOpenAsAlreadyTracked
void markOpenAsAlreadyTracked()
Mark the open as already tracked
-
hasLanding
boolean hasLanding()
Does this intent contains a Batch Messaging landing message
-
isLandingAlreadyShown
boolean isLandingAlreadyShown()
Does the landing message has been already shown
-
markLandingAsAlreadyShown
void markLandingAsAlreadyShown()
Mark the open as already tracked
-
getLanding
@Nullable() BatchMessage getLanding()
Get the landing message and mark it as used
-
getPushData
InternalPushData getPushData()
Retrieve the push data from the intent.
-
getPushBundle
Bundle getPushBundle()
-
putPushExtrasToIntent
static void putPushExtrasToIntent(Bundle fullPayload, InternalPushData batchData, Intent launchIntent)
Add push extras to an intent, to be picked up and tracked by Batch later
-
copyExtras
static void copyExtras(@Nullable() Intent from, @Nullable() Intent to)
Copy all of Batch's possible internal extras from an intent to another
-
copyExtras
static void copyExtras(@Nullable() Bundle from, @Nullable() Bundle to)
Copy all of Batch's possible internal extras from a bundle
-
-
-
-