SystemUiHostContext
fun SystemUiHostContext( fragmentActivity: FragmentActivity, iviInstanceId: IviInstanceId, frontendMetadata: Collection<FrontendMetadata>, splashScreenProvider: SplashScreenProvider)
Content copied to clipboard
Convenience constructor that extracts the required data from fragmentActivity.
fun SystemUiHostContext( context: Context, lifecycleOwner: LifecycleOwner, iviInstanceId: IviInstanceId, fragmentManager: FragmentManager, viewModelStoreOwner: ViewModelStoreOwner, frontendMetadata: Collection<FrontendMetadata>, splashScreenProvider: SplashScreenProvider)
Content copied to clipboard
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.