WindowAreaSessionCallback


@ExperimentalWindowApi
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 functions

Unit

Notifies about an end of a WindowAreaSession.

Unit

Notifies about a start of a session.

Public functions

onSessionEnded

Added in 1.2.0
fun onSessionEnded(t: Throwable?): Unit

Notifies about an end of a WindowAreaSession.

Parameters
t: Throwable?

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
fun onSessionStarted(session: WindowAreaSession): Unit

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.