| abstract void |
addAppCheckTokenListener(AppCheckTokenListener listener)
Registers a listener to changes in the token state.
|
| abstract Task<AppCheckTokenResult> |
getToken(boolean forceRefresh)
Requests an
AppCheckTokenResult from the installed AppCheckFactory. |
| abstract void |
removeAppCheckTokenListener(AppCheckTokenListener listener)
Unregisters a listener to changes in the token state.
|
Registers a listener to changes in the token state. There can be more than one listener registered at the same time for one or more FirebaseAppAuth instances. The listeners call back on the UI thread whenever the current token associated with this FirebaseAppCheck changes.
| listener |
|---|
Requests an AppCheckTokenResult from the installed AppCheckFactory. This will
always return a successful task, with an AppCheckTokenResult that contains either a
valid token, or a dummy token and an error string.
| forceRefresh |
|---|
Unregisters a listener to changes in the token state.
| listener |
|---|