Package 

Class CompoundComponentFactoryKt

    • Method Detail

      • CompoundComponentFactory

        @Composable() final static Unit CompoundComponentFactory(Object keys, Function1<VideoComponentFactory, VideoComponentFactory> factory, Function0<Unit> content)

        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
        }
        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.