public class PinPicker
extends Picker

   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ androidx.leanback.widget.picker.Picker
           ↳ androidx.leanback.widget.picker.PinPicker

Picker subclass for allowing the user to enter a numerical PIN. The column count can be customized, and defaults to 4. R.attr.columnCount


Inherited constants

Inherited fields

Public constructors

PinPicker(Context context, AttributeSet attrs)
PinPicker(Context context, AttributeSet attrs, int defStyleAttr)

Public methods

boolean dispatchKeyEvent(KeyEvent event)
String getPin()

Returns the PIN that the user has entered.

boolean performClick()
void resetPin()

Resets all columns and selects the first one.

void setNumberOfColumns(int count)

Sets the number of columns for entering the PIN.

Inherited methods