PinSignInMethod
@RequiresCarApi(value = 2)
@CarProtocol
public final class PinSignInMethod implements SignInTemplate.SignInMethod
A SignInTemplate.SignInMethod that presents a PIN or activation code that the user can use to sign-in.
Summary
Public constructors |
|---|
PinSignInMethod(@NonNull CharSequence pinCode)Returns a |
Public methods |
|
|---|---|
boolean |
|
@NonNull CarText |
Returns the PIN or activation code to present to the user. |
int |
hashCode() |
Public constructors
PinSignInMethod
public PinSignInMethod(@NonNull CharSequence pinCode)
Returns a PinSignInMethod instance.
The provided pin must be no more than 12 characters long. To facilitate typing this code, it is recommended restricting the string to a limited set (for example, numbers, upper-case letters, hexadecimal, etc.).
Spans are not supported in the pin and will be ignored.
| Parameters | |
|---|---|
@NonNull CharSequence pinCode |
the PIN to display is empty. |
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
if |
java.lang.NullPointerException |
if |
Public methods
getPinCode
public @NonNull CarText getPinCode()
Returns the PIN or activation code to present to the user.