-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
…no-op defaults
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,25 @@ | ||
package io.embrace.android.embracesdk.internal.session.lifecycle | ||
|
||
import android.app.Activity | ||
import android.app.Application.ActivityLifecycleCallbacks | ||
import android.os.Bundle | ||
|
||
/** | ||
* Listener implemented by observers of the [ActivityLifecycleTracker]. | ||
* Implementation of [ActivityLifecycleCallbacks] with no-op defaults | ||
*/ | ||
internal interface ActivityLifecycleListener { | ||
|
||
/** | ||
* Triggered when an activity is opened. | ||
* | ||
* @param activity details of the activity | ||
*/ | ||
fun onActivityStarted(activity: Activity) {} | ||
|
||
/** | ||
* Triggered when an activity is closed. | ||
* | ||
* @param activity details of the activity | ||
*/ | ||
fun onActivityStopped(activity: Activity) {} | ||
|
||
/** | ||
* Triggered when an activity is created. | ||
* | ||
* @param activity the activity | ||
* @param bundle the bundle | ||
*/ | ||
fun onActivityCreated(activity: Activity, bundle: Bundle?) {} | ||
internal interface ActivityLifecycleListener : ActivityLifecycleCallbacks { | ||
|
||
override fun onActivityCreated(activity: Activity, bundle: Bundle?) {} | ||
Check warning on line 12 in embrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/session/lifecycle/ActivityLifecycleListener.kt Codecov / codecov/patchembrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/session/lifecycle/ActivityLifecycleListener.kt#L12
|
||
|
||
override fun onActivityStarted(activity: Activity) {} | ||
Check warning on line 14 in embrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/session/lifecycle/ActivityLifecycleListener.kt Codecov / codecov/patchembrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/session/lifecycle/ActivityLifecycleListener.kt#L14
|
||
|
||
override fun onActivityResumed(activity: Activity) {} | ||
Check warning on line 16 in embrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/session/lifecycle/ActivityLifecycleListener.kt Codecov / codecov/patchembrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/session/lifecycle/ActivityLifecycleListener.kt#L16
|
||
|
||
override fun onActivityPaused(activity: Activity) {} | ||
Check warning on line 18 in embrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/session/lifecycle/ActivityLifecycleListener.kt Codecov / codecov/patchembrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/session/lifecycle/ActivityLifecycleListener.kt#L18
|
||
|
||
override fun onActivityStopped(activity: Activity) {} | ||
Check warning on line 20 in embrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/session/lifecycle/ActivityLifecycleListener.kt Codecov / codecov/patchembrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/session/lifecycle/ActivityLifecycleListener.kt#L20
|
||
|
||
override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle) {} | ||
Check warning on line 22 in embrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/session/lifecycle/ActivityLifecycleListener.kt Codecov / codecov/patchembrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/session/lifecycle/ActivityLifecycleListener.kt#L22
|
||
|
||
override fun onActivityDestroyed(activity: Activity) {} | ||
Check warning on line 24 in embrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/session/lifecycle/ActivityLifecycleListener.kt Codecov / codecov/patchembrace-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/session/lifecycle/ActivityLifecycleListener.kt#L24
|
||
} |