public interface AuthDistribution
You can read about possible Firebase authorization methods in Firebase docs:
| Modifier and Type | Method and Description |
|---|---|
void |
createUserWithEmailAndPassword(java.lang.String email,
char[] password,
AuthCallback callback)
Registers new user and gives response by
AuthCallback. |
GdxFirebaseUser |
getCurrentUser()
Gets currently logged in user or null if logged in user does not exists.
|
void |
signInAnonymously(AuthCallback callback)
Signs in into application anonymously and gives response by
AuthCallback. |
void |
signInWithEmailAndPassword(java.lang.String email,
char[] password,
AuthCallback callback)
Signs in into application and gives response by
AuthCallback
If something is wrong AuthCallback.onFail(Exception) will be call. |
void |
signInWithToken(java.lang.String token,
AuthCallback callback)
Signs in into application by token and gives response by
AuthCallback. |
GdxFirebaseUser getCurrentUser()
GdxFirebaseUser class, may by null.void createUserWithEmailAndPassword(java.lang.String email,
char[] password,
AuthCallback callback)
AuthCallback.email - New email addresspassword - New passwordcallback - Authorization callback, cant be null.AuthCallbackvoid signInWithEmailAndPassword(java.lang.String email,
char[] password,
AuthCallback callback)
AuthCallback
If something is wrong AuthCallback.onFail(Exception) will be call.
email - Firebase user emailpassword - Firebase user passwordcallback - Authorization callback, cant be null.AuthCallbackvoid signInWithToken(java.lang.String token,
AuthCallback callback)
AuthCallback.
More info you about custom tokens you can find here.
token - Custom token from your firebase console.callback - Authorization callback, cant be null.AuthCallbackvoid signInAnonymously(AuthCallback callback)
AuthCallback.
It may be very useful when you do not provide user authentication in your application and
working with GdxFIRDatabase or with GdxFIRStorage
because default Firebase requires authorization for database and storage actions.
callback - Authorization callback, cant be null.