FirebaseAuth.AuthStateListener

public static interface FirebaseAuth.AuthStateListener

Listener called when there is a change in the authentication state.

Use addAuthStateListener(AuthStateListener) and removeAuthStateListener(AuthStateListener) to register or unregister listeners.

Public Method Summary

abstract void
onAuthStateChanged(FirebaseAuth auth)
This method gets invoked in the UI thread on changes in the authentication state:
  • 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

Public Methods

public abstract void onAuthStateChanged (FirebaseAuth auth)

This method gets invoked in the UI thread on changes in the authentication state:

  • 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
Parameters
auth use it to disambiguate which FirebaseAuth instance the event corresponds to, in the case where you are using more than one at the same time.

发送以下问题的反馈:

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