public static abstract class

PhoneAuthProvider.OnVerificationStateChangedCallbacks

extends Object
java.lang.Object
   ↳ com.google.firebase.auth.PhoneAuthProvider.OnVerificationStateChangedCallbacks

Class Overview

Registered callbacks for the different phone auth events. Requires implementing two mandatory callbacks and provides default no-op implementations for optional callbacks.

Summary

Public Constructors
PhoneAuthProvider.OnVerificationStateChangedCallbacks()
Public Methods
void onCodeAutoRetrievalTimeOut(String verificationId)
Optional callback.
void onCodeSent(String verificationId, PhoneAuthProvider.ForceResendingToken forceResendingToken)
Optional callback.
abstract void onVerificationCompleted(PhoneAuthCredential credential)
This callback must be implemented.
abstract void onVerificationFailed(FirebaseException exception)
This callback must be implemented.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PhoneAuthProvider.OnVerificationStateChangedCallbacks ()

Public Methods

public void onCodeAutoRetrievalTimeOut (String verificationId)

Optional callback. It will trigger when SMS auto-retrieval times out and provide a verificationId.

Parameters
verificationId String

public void onCodeSent (String verificationId, PhoneAuthProvider.ForceResendingToken forceResendingToken)

Optional callback. It will trigger when an SMS has been sent to the users phone, and will include a verificationId and PhoneAuthProvider.ForceResendingToken.

Parameters
verificationId String
forceResendingToken PhoneAuthProvider.ForceResendingToken

public abstract void onVerificationCompleted (PhoneAuthCredential credential)

This callback must be implemented. It will trigger when an SMS is auto-retrieved or the phone number has been instantly verified. The callback will provide a (@link AuthCredential).

Parameters
credential PhoneAuthCredential

public abstract void onVerificationFailed (FirebaseException exception)

This callback must be implemented.

Triggered when an error occurred during phone number verification.

Exceptions:

Parameters
exception FirebaseException