PinSignInMethod.Builder

public static final class PinSignInMethod.Builder
extends Object

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


A builder of PinSignInMethod.

Summary

Public constructors

Builder(String pin)

Returns a PinSignInMethod.Builder instance.

Public methods

PinSignInMethod build()

Returns a PinSignInMethod instance.

Inherited methods

Public constructors

Builder

public Builder (String pin)

Returns a PinSignInMethod.Builder instance.

The provided pin must be no more than 20 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.).

Parameters
pin String: the PIN to display

Throws
IllegalArgumentException if pin is null or empty

Public methods

build

public PinSignInMethod build ()

Returns a PinSignInMethod instance.

Returns
PinSignInMethod