NestedStyleProviderStyleScope

Known direct subclasses
CommonStyleScope

A CommonStyleScope is the scope used by a CommonStyle.


A scope that allows providing a nested style that will be read and used by a nested styleable composable function.

NestedStyleProviderStyleScope is implemented by CommonStyleScope, but a CustomStyle may choose to prevent arbitrary keys from being provided by defining a style scope that excludes this interface.

Summary

Public functions

Unit

Provides style as a nested style to the nested composable identified by the provided key.

Cmn

Public functions

provideNestedStyle

fun provideNestedStyle(key: NestedStyleKey, style: CommonStyle): Unit

Provides style as a nested style to the nested composable identified by the provided key. The style is intended to be applied as the style for a nested styleable composable using applyNestedStyle.

Parameters
key: NestedStyleKey

the key that identifies which nested composable this style is applied to

style: CommonStyle

the style to be applied to the nested composable

See also
applyNestedStyle