android-components / mozilla.components.concept.sync / AccountObserver
AccountObserver
interface AccountObserver
(source)
Observer interface which lets its users monitor account state changes and major events.
Functions
Name | Summary |
---|---|
onAuthenticated | open fun onAuthenticated(account: OAuthAccount , authType: AuthType ): Unit Account was successfully authenticated. |
onAuthenticationProblems | open fun onAuthenticationProblems(): Unit Account needs to be re-authenticated (e.g. due to a password change). |
onLoggedOut | open fun onLoggedOut(): Unit Account just got logged out. |
onProfileUpdated | open fun onProfileUpdated(profile: Profile ): Unit Account’s profile is now available. |
Extension Functions
Name | Summary |
---|---|
loadResourceAsString | fun Any .loadResourceAsString(path: String ): String Loads a file from the resources folder and returns its content as a string object. |