then
Function
Common
infix fun DeviceConfigurationOverride.then(
other: DeviceConfigurationOverride
): DeviceConfigurationOverride
Combines this override with the other
override into a single override, by applying this
override as the outer override first, then the other
override as an inner override, and then
the content.
Code Examples
DeviceConfigurationOverrideThenSample
@Composable
fun DeviceConfigurationOverrideThenSample() {
DeviceConfigurationOverride(
DeviceConfigurationOverride.FontScale(1.5f) then
DeviceConfigurationOverride.FontWeightAdjustment(200)
) {
Text(text = "text with increased scale and weight")
}
}