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.

Parameters

otherthe DeviceConfigurationOverride to apply after this one

Returns

a new DeviceConfigurationOverride that applies both this DeviceConfigurationOverride and then the other.

Code Examples

DeviceConfigurationOverrideThenSample

@Composable
fun DeviceConfigurationOverrideThenSample() {
    DeviceConfigurationOverride(
        DeviceConfigurationOverride.FontScale(1.5f) then
            DeviceConfigurationOverride.FontWeightAdjustment(200)
    ) {
        Text(text = "text with increased scale and weight")
    }
}