WindowAreaSessionCallback


@ExperimentalWindowApi
public interface WindowAreaSessionCallback


Callback to update the client on the WindowArea Session being started and ended. TODO(b/207720511) Move to window-java module when Kotlin API Finalized

Summary

Public methods

abstract void

Notifies about an end of a WindowAreaSession.

abstract void

Notifies about a start of a session.

Public methods

onSessionEnded

Added in 1.2.0
abstract void onSessionEnded(Throwable t)

Notifies about an end of a WindowAreaSession.

Parameters
Throwable t

Throwable to provide information on if the session was ended due to an error. This will only occur if a session is attempted to be enabled when it is not available, but can be expanded to alert for more errors in the future.

onSessionStarted

Added in 1.2.0
abstract void onSessionStarted(@NonNull WindowAreaSession session)

Notifies about a start of a session. Provides a reference to the current WindowAreaSession the application the ability to close the session through WindowAreaSession.close.