java.lang.Object | |
↳ | com.google.firebase.auth.PhoneAuthProvider.OnVerificationStateChangedCallbacks |
Registered callbacks for the different phone auth events. Requires implementing two mandatory callbacks and provides default no-op implementations for optional callbacks.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Optional callback.
| |||||||||||
Optional callback.
| |||||||||||
This callback must be implemented.
| |||||||||||
This callback must be implemented.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Optional callback. It will trigger when SMS auto-retrieval times out and provide a
verificationId
.
Parameters | |
---|---|
verificationId |
String
|
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
|
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
|
This callback must be implemented.
Triggered when an error occurred during phone number verification.
FirebaseAuthInvalidCredentialsException
thrown if the request is in some way
malformed (such as an invalid phone number). Check the error message for details.
FirebaseAuthException
thrown if the app is not authorized to use Firebase
Authentication. Verify the app's package name and SHA-1 in the Firebase Console.
FirebaseTooManyRequestsException
thrown if the sms quota
for the project has been exceeded.
FirebaseApiNotAvailableException
thrown if this api is
called on a device the does not have Google Play Services
Parameters | |
---|---|
exception |
FirebaseException
|