Added in API level 37.2
LifecycleListener
interface LifecycleListener
| android.app.AppInteractionSession.LifecycleListener |
Listener for session lifecycle events.
Summary
| Public methods | |
|---|---|
| open Unit |
onAppInteractionSessionClosed(session: AppInteractionSession, reason: Int)Called when the session is closed. |
Public methods
onAppInteractionSessionClosed
Added in API level 37.2
open fun onAppInteractionSessionClosed(
session: AppInteractionSession,
reason: Int
): Unit
Called when the session is closed.
A session may be closed explicitly via AppInteractionSession.close() or implicitly by the system when the session reaches its maximum duration timeout.
If the session is already closed, the listener will be invoked immediately.
| Parameters | |
|---|---|
session |
AppInteractionSession: The session that is closed. This value cannot be null. |
reason |
Int: The reason why the session is closed. Value is one of the following: |