AdaptiveSystemUiHelper
constructor(context: Context, viewVariantSelector: (widthDp: Int, heightDp: Int) -> T, inflateFunctionProvider: (T) -> (LayoutInflater) -> ViewDataBinding, bindDataFunction: (ViewDataBinding) -> Unit)
Parameters
T
The enum type of view variant.
context
The context of the system UI.
viewVariantSelector
Called at construction time, uses the measured display size to determine which view variant to use.
inflateFunctionProvider
Provides an inflate function based on the view variant.
bindDataFunction
A function that operates on the view data binding, for instance to set variables.