firebase::auth::AuthStateListener

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.

Constructors and Destructors

~AuthStateListener()

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.

  • 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.

发送以下问题的反馈:

此网页
需要帮助?请访问我们的支持页面