-
public class ExcludedActivityHelperSimple helper class to check if an activity should be excluded from the Batch's lifecycle and save the intent if there's a push payload attached.
-
-
Method Summary
Modifier and Type Method Description voidsaveIntentIfNeeded(@NonNull() Activity activity)Check if the activity has a Batch push payload and saving it. static booleanactivityIsExcludedFromManifest(@NonNull() Activity activity)Check if the activity has the EXCLUDE_FROM_LIFECYCLE meta-data info booleanhasIntent()Check if there's a pending ignored intent with a push payload IntentpopIntent()Return the pending ignored intent with a push payload and remove it. -
-
Method Detail
-
saveIntentIfNeeded
void saveIntentIfNeeded(@NonNull() Activity activity)
Check if the activity has a Batch push payload and saving it.
- Parameters:
activity- the created activity
-
activityIsExcludedFromManifest
static boolean activityIsExcludedFromManifest(@NonNull() Activity activity)
Check if the activity has the EXCLUDE_FROM_LIFECYCLE meta-data info
- Parameters:
activity- the activity to check
-
hasIntent
boolean hasIntent()
Check if there's a pending ignored intent with a push payload
-
-
-
-