Function

Keyboard

A DeviceConfigurationOverride that overrides the current keyboard type.

DeviceConfigurationOverrideKeyboard

@Sampled
@Composable
fun DeviceConfigurationOverrideKeyboard() {
    DeviceConfigurationOverride(
        DeviceConfigurationOverride.Keyboard(Configuration.KEYBOARD_QWERTY)
    ) {
        LocalConfiguration.current.keyboard // will be Configuration.KEYBOARD_QWERTY
    }
}
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: