SystemUiHostContext
data class SystemUiHostContext( val context: Context, val lifecycleOwner: LifecycleOwner, val iviInstanceId: IviInstanceId, val fragmentManager: FragmentManager, val viewModelStoreOwner: ViewModelStoreOwner, val frontendMetadata: Collection<FrontendMetadata>, val splashScreenProvider: SplashScreenProvider)
Content copied to clipboard
Information about the environment that a system UI host runs in and how it should present itself.
Parameters
context
The Context that the system UI lives in.
lifecycleOwner
The lifecycle to which the system UI is bound.
iviInstanceId
The ID for the IVI instance that this system UI instance operates in.
fragmentManager
Used for presenting panels' fragments.
viewModelStoreOwner
Used for managing the system UI's view model(s).
frontendMetadata
Specifies which Frontends the system UI should manage and present.
splashScreenProvider
Is used by the system UI to create a view used as a splash screen.
Constructors
Link copied to clipboard
fun SystemUiHostContext( fragmentActivity: FragmentActivity, iviInstanceId: IviInstanceId, frontendMetadata: Collection<FrontendMetadata>, splashScreenProvider: SplashScreenProvider)
Content copied to clipboard
Convenience constructor that extracts the required data from fragmentActivity.
Link copied to clipboard
fun SystemUiHostContext( context: Context, lifecycleOwner: LifecycleOwner, iviInstanceId: IviInstanceId, fragmentManager: FragmentManager, viewModelStoreOwner: ViewModelStoreOwner, frontendMetadata: Collection<FrontendMetadata>, splashScreenProvider: SplashScreenProvider)
Content copied to clipboard