ViewFocusHandler

data class ViewFocusHandler(@IdRes id: Int, handler: Handler) : FocusHandler

A FocusHandler that focuses on a view with a given ID.

Parameters

id

the ID of the View to focus on

handler

the Handler on which to wait for a Window focus

Constructors

Link copied to clipboard
constructor(@IdRes id: Int)

Constructor

constructor(@IdRes id: Int, handler: Handler)

Functions

Link copied to clipboard
fun requestFocus(activity: Activity?)