ui / com.schibsted.account.ui / KeyboardController

KeyboardController

class KeyboardController : KeyboardListener

Constructors

<init>

KeyboardController(activity: AppCompatActivity)

Properties

keyboardVisibility

val keyboardVisibility: MutableLiveData<Boolean>

Functions

closeKeyboard

fun closeKeyboard(): Unit

Closes down the keyboard On some devices keyboard may still be showing up, even on screen without field to fill in Because the keyboard is not part of the application a different behavior might occurs depending on the system implementation.

isKeyboardOpen

fun isKeyboardOpen(): Boolean

register

fun register(baseFragment: BaseFragment?): Unit

set up the keyboard actionListener FlowFragment.onVisibilityChanged is called when a layout change occurs due to a change of the soft keyboard visibility

unregister

fun unregister(baseFragment: BaseFragment?): Unit

Companion Object Functions

closeKeyboard

fun closeKeyboard(activity: FragmentActivity): Unit

showKeyboard

fun showKeyboard(activity: FragmentActivity): Unit