WindowAreaPresentationSessionCallback
@ExperimentalWindowApi
public interface WindowAreaPresentationSessionCallback
A callback to notify about the lifecycle of a window area presentation session.
| See also | |
|---|---|
presentContentOnWindowArea |
Summary
Public methods |
|
|---|---|
abstract void |
onContainerVisibilityChanged(boolean isVisible)Notifies about changes in visibility of a container that can hold the app content to show in the window area. |
abstract void |
Notifies about an end of a presentation session. |
abstract void |
Notifies about a start of a presentation session. |
Public methods
onContainerVisibilityChanged
abstract void onContainerVisibilityChanged(boolean isVisible)
Notifies about changes in visibility of a container that can hold the app content to show in the window area. Notification of the container being visible is guaranteed to occur after onSessionStarted has been called. The container being no longer visible is guaranteed to occur before onSessionEnded.
If content was never presented, then this method will never be called.
onSessionEnded
abstract void onSessionEnded(Throwable t)
Notifies about an end of a presentation session. The presentation and any app-provided content in the window area is removed.
onSessionStarted
abstract void onSessionStarted(@NonNull WindowAreaSessionPresenter session)
Notifies about a start of a presentation session. Provides a reference to WindowAreaSessionPresenter to allow an application to customize a presentation when the session starts. The Context provided from the WindowAreaSessionPresenter should be used to inflate or make any UI decisions around the presentation View that should be shown in that area.