PinSignInMethod

public final class PinSignInMethod
extends Object implements SignInTemplate.SignInMethod

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


A SignInTemplate.SignInMethod that presents a PIN or activation code that the user can use to sign-in.

Summary

Public constructors

PinSignInMethod(CharSequence pinCode)

Returns a PinSignInMethod instance.

Public methods

boolean equals(Object other)
CarText getPinCode()

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

int hashCode()

Inherited methods

Public constructors

PinSignInMethod

public PinSignInMethod (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
pinCode CharSeque