CompoundComponentFactory
fun CompoundComponentFactory(vararg keys: Any?, factory: (currentComponentFactory: VideoComponentFactory) -> VideoComponentFactory, content: @Composable () -> Unit)
Provides a VideoComponentFactory built on top of the current VideoComponentFactory to the given content, allowing overrides to be layered for a subtree.
CompoundComponentFactory(
factory = { currentComponentFactory ->
object : VideoComponentFactory by currentComponentFactory {
// Overridden components
}
},
) {
// Content using the compound factory
}Content copied to clipboard
Parameters
keys
Optional keys to control the recomposition of the compound factory.
factory
Builds the new VideoComponentFactory from the current one.
content
The content that uses the compound factory.