Keyboard Compose

This module contains composable functions to work with Kaluga keyboard.

Installing

The library is available on Maven Central. You can import Kaluga Keyboard Compose as follows:

repositories {
    // ...
    mavenCentral()
}
// ...
dependencies {
    // ...
    implementation("com.splendo.kaluga.keyboard-compose:$kalugaVersion")
}

Usage

Check out the full documentation

Create a ComposeKeyboardManager.Builder and add it to the LifecycleSubscribables of a BaseLifecycleViewModel. Bind the ViewModel to your composable view using ViewModelComposable.

To show the keyboard, add a FocusRequester to a view using

TextField(
    modifier = Modifier
        .focusRequester(focusRequester)
)

And focus on it using ComposeFocusHandler(focusRequester)