Package 

Class ExcludedActivityHelper


  • 
    public class ExcludedActivityHelper
    
                        

    Simple 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
      void saveIntentIfNeeded(@NonNull() Activity activity) Check if the activity has a Batch push payload and saving it.
      static boolean activityIsExcludedFromManifest(@NonNull() Activity activity) Check if the activity has the EXCLUDE_FROM_LIFECYCLE meta-data info
      boolean hasIntent() Check if there's a pending ignored intent with a push payload
      Intent popIntent() Return the pending ignored intent with a push payload and remove it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
      • hasIntent

         boolean hasIntent()

        Check if there's a pending ignored intent with a push payload

      • popIntent

         Intent popIntent()

        Return the pending ignored intent with a push payload and remove it.