Package com.batch.android.core
Class ExcludedActivityHelper
- java.lang.Object
-
- com.batch.android.core.ExcludedActivityHelper
-
public class ExcludedActivityHelper extends java.lang.ObjectSimple 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.
-
-
Constructor Summary
Constructors Constructor Description ExcludedActivityHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanactivityIsExcludedFromManifest(android.app.Activity activity)Check if the activity has the EXCLUDE_FROM_LIFECYCLE meta-data infobooleanhasIntent()Check if there's a pending ignored intent with a push payloadandroid.content.IntentpopIntent()Return the pending ignored intent with a push payload and remove it.voidsaveIntentIfNeeded(android.app.Activity activity)Check if the activity has a Batch push payload and saving it.
-
-
-
Method Detail
-
saveIntentIfNeeded
public void saveIntentIfNeeded(@NonNull android.app.Activity activity)Check if the activity has a Batch push payload and saving it.- Parameters:
activity- the created activity
-
activityIsExcludedFromManifest
public static boolean activityIsExcludedFromManifest(@NonNull android.app.Activity activity)Check if the activity has the EXCLUDE_FROM_LIFECYCLE meta-data info- Parameters:
activity- the activity to check- Returns:
- true if the activity should be excluded from Batch
-
hasIntent
public boolean hasIntent()
Check if there's a pending ignored intent with a push payload- Returns:
- true if there's one
-
popIntent
public android.content.Intent popIntent()
Return the pending ignored intent with a push payload and remove it.- Returns:
- intent
-
-