Package com.batch.android
Class BatchActivityLifecycleHelper
java.lang.Object
com.batch.android.BatchActivityLifecycleHelper
- All Implemented Interfaces:
Application.ActivityLifecycleCallbacks
public class BatchActivityLifecycleHelper
extends Object
implements Application.ActivityLifecycleCallbacks
Implementation of
Application.ActivityLifecycleCallbacks
for managing Batch's lifecycle
Important note: While this removes the need for most lifecycle activities, you still MUST add Batch.onNewIntent(this, intent) in all your activities
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onActivityCreated
(Activity activity, Bundle savedInstanceState) void
onActivityDestroyed
(Activity activity) void
onActivityPaused
(Activity activity) void
onActivityResumed
(Activity activity) void
onActivitySaveInstanceState
(Activity activity, Bundle outState) void
onActivityStarted
(Activity activity) void
onActivityStopped
(Activity activity) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface android.app.Application.ActivityLifecycleCallbacks
onActivityPostCreated, onActivityPostDestroyed, onActivityPostPaused, onActivityPostResumed, onActivityPostSaveInstanceState, onActivityPostStarted, onActivityPostStopped, onActivityPreCreated, onActivityPreDestroyed, onActivityPrePaused, onActivityPreResumed, onActivityPreSaveInstanceState, onActivityPreStarted, onActivityPreStopped
-
Constructor Details
-
BatchActivityLifecycleHelper
public BatchActivityLifecycleHelper()
-
-
Method Details
-
onActivityCreated
- Specified by:
onActivityCreated
in interfaceApplication.ActivityLifecycleCallbacks
-
onActivityStarted
- Specified by:
onActivityStarted
in interfaceApplication.ActivityLifecycleCallbacks
-
onActivityResumed
- Specified by:
onActivityResumed
in interfaceApplication.ActivityLifecycleCallbacks
-
onActivityPaused
- Specified by:
onActivityPaused
in interfaceApplication.ActivityLifecycleCallbacks
-
onActivityStopped
- Specified by:
onActivityStopped
in interfaceApplication.ActivityLifecycleCallbacks
-
onActivitySaveInstanceState
- Specified by:
onActivitySaveInstanceState
in interfaceApplication.ActivityLifecycleCallbacks
-
onActivityDestroyed
- Specified by:
onActivityDestroyed
in interfaceApplication.ActivityLifecycleCallbacks
-