android-components / mozilla.components.service.fxa

Package mozilla.components.service.fxa

Types

Name Summary
AccountStorage interface AccountStorage
FirefoxAccount class FirefoxAccount : OAuthAccount
FirefoxAccount represents the authentication state of a client.
FxaDeviceConstellation class FxaDeviceConstellation : DeviceConstellation, Observable<DeviceEventsObserver>
Provides an implementation of DeviceConstellation backed by a FirefoxAccount.
SharedPrefAccountStorage class SharedPrefAccountStorage : AccountStorage

Type Aliases

Name Summary
Config typealias Config = Config
FxaException typealias FxaException = FxaException
High-level exception class for the exceptions thrown in the Rust library.
FxaNetworkException typealias FxaNetworkException = Network
Thrown on a network error.
FxaPanicException typealias FxaPanicException = Panic
Thrown when the Rust library hits an assertion or panic (this is always a bug).
FxaUnauthorizedException typealias FxaUnauthorizedException = Unauthorized
Thrown when the operation requires additional authorization.
FxaUnspecifiedException typealias FxaUnspecifiedException = Unspecified
Thrown when the Rust library hits an unexpected error that isn’t a panic. This may indicate library misuse, network errors, etc.
PersistCallback typealias PersistCallback = PersistCallback

Extensions for External Classes

Name Summary
mozilla.appservices.fxaclient.AccessTokenInfo  
mozilla.appservices.fxaclient.AccountEvent.TabReceived  
mozilla.appservices.fxaclient.Device  
mozilla.appservices.fxaclient.Device.Capability  
mozilla.appservices.fxaclient.Device.PushSubscription  
mozilla.appservices.fxaclient.Device.Type  
mozilla.appservices.fxaclient.Profile  
mozilla.appservices.fxaclient.ScopedKey  
mozilla.appservices.fxaclient.TabHistoryEntry  

Properties

Name Summary
FXA_STATE_KEY const val FXA_STATE_KEY: String
FXA_STATE_PREFS_KEY const val FXA_STATE_PREFS_KEY: String

Functions

Name Summary
into fun DeviceType.into(): Type
fun DeviceCapability.into(): Capability
fun DevicePushSubscription.into(): PushSubscription
fun Device.into(): Device
fun TabData.into(): TabHistoryEntry
fun TabReceived.into(): TabReceived
maybeExceptional fun <T> maybeExceptional(block: () -> T, handleErrorBlock: (FxaException) -> T): T
Runs a provided lambda, and if that throws non-panic FxA exception, runs the second lambda.