Added in version 37.2

AppInteractionSession.LifecycleListener


public static interface AppInteractionSession.LifecycleListener

android.app.AppInteractionSession.LifecycleListener


Listener for session lifecycle events.

Summary

Public methods

default void onAppInteractionSessionClosed(AppInteractionSession session, int reason)

Called when the session is closed.

Public methods

onAppInteractionSessionClosed

Added in version 37.2
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.

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: