OnVerificationStateChangedCallbacks

The callbacks of verifyPhoneNumber.

Constructors

Link copied to clipboard
actual constructor()
expect constructor()
actual constructor()
actual constructor()

Functions

Link copied to clipboard
actual open fun onCodeAutoRetrievalTimeOut(verificationId: String)
expect open fun onCodeAutoRetrievalTimeOut(verificationId: String)

Auto-retrieval timed out without a code; the user must enter it.

actual open fun onCodeAutoRetrievalTimeOut(verificationId: String)
actual open fun onCodeAutoRetrievalTimeOut(verificationId: String)
Link copied to clipboard
actual open fun onCodeSent(verificationId: String, token: PhoneAuthProvider.ForceResendingToken)
expect open fun onCodeSent(verificationId: String, token: PhoneAuthProvider.ForceResendingToken)

An SMS code was sent; ask the user for it and call getCredential with verificationId.

actual open fun onCodeSent(verificationId: String, token: PhoneAuthProvider.ForceResendingToken)
actual open fun onCodeSent(verificationId: String, token: PhoneAuthProvider.ForceResendingToken)
Link copied to clipboard
actual abstract fun onVerificationCompleted(credential: PhoneAuthCredential)
expect abstract fun onVerificationCompleted(credential: PhoneAuthCredential)

The SDK verified the number itself; sign in with credential.

actual abstract fun onVerificationCompleted(credential: PhoneAuthCredential)
actual abstract fun onVerificationCompleted(credential: PhoneAuthCredential)
Link copied to clipboard
actual abstract fun onVerificationFailed(exception: FirebaseException)
expect abstract fun onVerificationFailed(exception: <Error class: unknown class>)

Verification failed, e.g. with a FirebaseAuthInvalidCredentialsException for a malformed number.

actual abstract fun onVerificationFailed(exception: FirebaseException)
actual abstract fun onVerificationFailed(exception: <Error class: unknown class>)