ValueKeyboardManager

open class ValueKeyboardManager<Value>(onFocusOnValue: (Value?) -> Unit)

A BaseKeyboardManager that takes a ValueFocusHandler. Uses for managing keyboard in a generic way so that it allows for usage from SwiftUI.

Parameters

Value

the type of value to expect

onFocusOnValue

callback method to indicate how to handle a focus change to a Value. When null is provided, they keyboard should be dismissed.

Constructors

Link copied to clipboard
constructor(onFocusOnValue: (Value?) -> Unit)

Functions

Link copied to clipboard
open fun hide()
Link copied to clipboard
open fun show(focusHandler: ValueFocusHandler<Value>)