WindowAreaSessionPresenter
@ExperimentalWindowApi
public interface WindowAreaSessionPresenter extends WindowAreaSession
A container that allows getting access to and showing content on a window area. The container is provided from WindowAreaPresentationSessionCallback when a requested session becomes active. The presentation can be automatically dismissed by the system when the user leaves the primary application window, or can be closed by calling WindowAreaSessionPresenter.close.
| See also | |
|---|---|
presentContentOnWindowArea |
Summary
Public methods |
|
|---|---|
abstract @NonNull Context |
Returns the |
abstract Window |
Returns the |
abstract void |
setContentView(@NonNull View view)Sets a |
Inherited methods |
||
|---|---|---|
|
Public methods
getContext
abstract @NonNull Context getContext()
Returns the Context associated with the window area.
getWindow
abstract Window getWindow()
Returns the Window associated with the active presentation window area or null if there is no Window currently active. This could occur if the presenter has already been dismissed, and there is no expectation that the Window would become non-null at a later point. This API can be used to directly access parts of the Window API that are not available through the Context provided.
setContentView
abstract void setContentView(@NonNull View view)
Sets a View to show on a window area. After setting the view the system can turn on the corresponding display and start showing content.