public
static
interface
AppInteractionSession.LifecycleListener
| android.app.AppInteractionSession.LifecycleListener |
Listener for session lifecycle events.
Public methods | |
|---|---|
default
void
|
onAppInteractionSessionClosed(AppInteractionSession session, int reason)
Called when the session is closed. |
public void onAppInteractionSessionClosed (AppInteractionSession session,
int reason)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.
sessionAppInteractionSession: The session that is closed.
null.reasonint: The reason why the session is closed.
AppInteractionSession.CLOSE_REASON_UNKNOWNAppInteractionSession.CLOSE_REASON_TIMEOUTAppInteractionSession.CLOSE_REASON_CALLER_INITIATEDContent and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-08-28 UTC.