Send feedback
firebase::auth::AuthStateListener
bookmark_border bookmark
Stay organized with collections
Save and categorize content based on your preferences.
This is an abstract class.
#include <auth.h>
Listener called when there is a change in the authentication state.
Summary
Override base class method to handle authentication state changes. Methods are invoked asynchronously and may be invoked on other threads.
Public functions
OnAuthStateChanged (Auth *auth)=0
virtual void
Called when the authentication state of auth
changes.
Public functions
OnAuthStateChanged
virtual void OnAuthStateChanged (
Auth * auth
) = 0
Called when the authentication state of auth
changes.
Right after the listener has been registered
When a user is signed in
When the current user is signed out
When the current user changes
Details
Parameters
auth
Disambiguates which
Auth instance the event corresponds to, in the case where you are using more than one at the same time.
~AuthStateListener
virtual ~ AuthStateListener ()
Note: : Destruction of the listener automatically calls RemoveAuthStateListener() from the Auths this listener is registered with, if those Auths have not yet been destroyed.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-23 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-01-23 UTC."],[],[]]