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.

Summary

Public methods

abstract @NonNull Context

Returns the Context associated with the window area.

abstract void

Sets a View to show on a window area.

Inherited methods

From androidx.window.area.WindowAreaSession
abstract void

Closes the active session, no-op if the session is not currently active.

Public methods

getContext

Added in 1.2.0
abstract @NonNull Context getContext()

Returns the Context associated with the window area.

setContentView

Added in 1.2.0
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.