PhoneAuthListener class abstract
A listener of the PhoneAuthFlow lifecycle.
- Inheritance
-
- Object
- AuthListener
- PhoneAuthListener
- Implementers
Constructors
Properties
- auth → FirebaseAuth
-
The
FirebaseAuth
instance used to perform authentication against. By default,FirebaseAuth.instance
is used.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
provider
→ AuthProvider<
AuthListener, AuthCredential> -
Current AuthProvider that is being used to authenticate the user.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onBeforeProvidersForEmailFetch(
) → void -
Called before an attempt to fetch available providers for the email.
inherited
-
onBeforeSignIn(
) → void -
Called right before the authentication process starts.
inherited
-
onCanceled(
) → void -
Called when the user cancells the sign in process.
inherited
-
onCodeSent(
String verificationId, [int? forceResendToken]) → void - Called when the SMS code was sent. UI should provide a way to enter the code.
-
onConfirmationRequested(
ConfirmationResult result) → void - Caled when the SMS code was requested. UIs usually reflect this state with a loading indicator. Called only on web.
-
onCredentialLinked(
AuthCredential credential) → void -
Called if the credential was successfully linked with the user account.
inherited
-
onCredentialReceived(
AuthCredential credential) → void -
Called before an attempt to link the credential with currently signed in
user account.
inherited
-
onDifferentProvidersFound(
String email, List< String> providers, AuthCredential? credential) → void -
Called when available providers for the email were successfully fetched.
inherited
-
onError(
Object error) → void -
Called if an error occured during the authentication process.
inherited
-
onMFARequired(
MultiFactorResolver resolver) → void -
Called when the user has to complete MFA.
inherited
-
onSignedIn(
UserCredential credential) → void -
Called if the user has successfully signed in.
inherited
-
onSMSCodeRequested(
String phoneNumber) → void - Caled when the SMS code was requested. UIs usually reflect this state with a loading indicator. Is not supported on web.
-
onVerificationCompleted(
PhoneAuthCredential credential) → void - Called when the phone number was successfully verified.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited