A DSL to handle soft keyboard visibility change event written in Kotlin.
Step 1. Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.viniciusmo:keyboard-visibility-event-android:1.0.4'
}
Step 3. Code example
keyboard {
onClosed { alert("onClosed").show() }
onOpened { alert("onOpened").show() }
}