ui / com.schibsted.account.ui.smartlock / SmartlockController

SmartlockController

class SmartlockController

Constructors

<init>

SmartlockController(loginActivity: BaseLoginActivity, smartlockReceiver: SmartlockReceiver)

Functions

deleteCredential

fun deleteCredential(): Unit

provideCredential

fun provideCredential(parcelable: Parcelable): Unit

provideHint

fun provideHint(parcelable: Parcelable): Unit

saveCredential

fun saveCredential(identifier: String, password: String): Unit

start

fun start(): Unit

Companion Object Properties

EXTRA_SMARTLOCK_CREDENTIALS

const val EXTRA_SMARTLOCK_CREDENTIALS: String

Key used to extract the Parcelable credential object from an Intent Note that you should not directly cast the object as Credential com.google.android.gms.credentials.Credential, that would bring a dependency which might not be resolvable if the smartlock dependency isn't added by the client. This must be checked in BaseLoginActivity.onActivityResult

RC_CHOOSE_ACCOUNT

const val RC_CHOOSE_ACCOUNT: Int

Request code sent by the smartlock controller when the user has to choose between multiple account the one to login with. This must be checked in BaseLoginActivity.onActivityResult

RC_IDENTIFIER_ONLY

const val RC_IDENTIFIER_ONLY: Int

Request code sent by the smartlock controller when the user has to choose which account must be used to pre-fill the identifier field. This must be checked in BaseLoginActivity.onActivityResult

Companion Object Functions

isSmartlockAvailable

fun isSmartlockAvailable(): Boolean