SystemUiHost

abstract class SystemUiHost(systemUiHostContext: SystemUiHostContext) : OnBackPressedConsumer

A host for the system UI. Implementations of this class are responsible for providing the system UI view and the Frontends within them.

May be used by an activity and other components capable of displaying the system UI, like a VirtualDisplay.

Must be overridden to provide a layout for the system UI.

Parameters

systemUiHostContext

The data class that encloses all the arguments needed for the class to function.

Constructors

Link copied to clipboard
fun SystemUiHost(systemUiHostContext: SystemUiHostContext)

Types

Link copied to clipboard
class BindingViewFactory<B : ViewDataBinding>(inflateFunction: (LayoutInflater) -> B, bindDataFunction: (B) -> Unit) : SystemUiHost.ViewFactory

A factory for a data-bound main view to be shown within the system UI which that takes care of common tasks around inflation and binding a lifecycle owner.

Link copied to clipboard
interface ViewFactory

A factory for the main view to be shown within the system UI.

Properties

Link copied to clipboard
val rootView: ViewGroup

The system UI's view to be shown to the user. Not available before onCreate.

Link copied to clipboard
lateinit var softInputAccessor: SoftInputAccessor

The entry point for soft input functionality. Not available before onCreate.

Link copied to clipboard
abstract val supportedPanelTypes: PanelTypeSet

Specifies which Panel types this system UI implementation is able to present to the user when a Frontend offers it.

Link copied to clipboard
open val unsupportedPanelTypes: PanelTypeSet

Specifies which Panel types this system UI implementation is not able to present to the user when a Frontend offers it.

Functions

Link copied to clipboard
open override fun onBackPressed(): Boolean