InputSignInMethod

public final class InputSignInMethod
extends Object implements SignInTemplate.SignInMethod

java.lang.Object
   ↳ androidx.car.app.model.signin.InputSignInMethod


A SignInTemplate.SignInMethod that presents an input box for the user to enter their credentials.

For example, this can be used to request a username, a password or an activation code.

Summary

Nested classes

class InputSignInMethod.Builder

A builder of InputSignInMethod

Constants

int INPUT_TYPE_DEFAULT

Default input where the text is shown as it is typed.

int INPUT_TYPE_PASSWORD

Input where the text is hidden as it is typed.

int KEYBOARD_DEFAULT

Default (full) keyboard.

int KEYBOARD_EMAIL

Keyboard optimized for typing an email address.

int KEYBOARD_NUMBER

Keyboard optimized for typing numbers.

int KEYBOARD_PHONE

Keyboard optimized for typing a phone number.

Public methods

boolean equals(Object other)
CarText getDefaultValue()

Returns the default value for this input box or null if no value is provided.

CarText getErrorMessage()

Returns an error message associated with the user input.

CarText getHint()

Returns the text explaining to the user what should be entered in this input box or null if no hint is provided.

InputCallbackDelegate getInputCallbackDelegate()

Returns the InputCallbackDelegate for input callbacks.

int getInputType()

Returns the input type, one of INPUT_TYPE_DEFAULT or INPUT_TYPE_PASSWORD

int getKeyboardType()

Returns the type of keyboard to be displayed when this input gets focused.

int hashCode()