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

Returns a PinSignInMethod instance.

Public methods

boolean
equals(Object other)
@NonNull CarText

Returns the PIN or activation code to present to the user.

int

Public constructors

PinSignInMethod

Added in 1.1.0
public PinSignInMethod(@NonNull CharSequence pinCode)

Returns a PinSignInMethod instance.

Requirements

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 pin is empty or longer than 12 characters.

java.lang.NullPointerException

if pin is null

Public methods

equals

public boolean equals(Object other)

getPinCode

Added in 1.1.0
public @NonNull CarText getPinCode()

Returns the PIN or activation code to present to the user.

hashCode

public int hashCode()