Enumerations
The following enumerations are available globally.
-
Declaration
Swift
public enum OhttpError
extension OhttpError: Equatable, Hashable
extension OhttpError: Foundation.LocalizedError
-
Declaration
Swift
public enum AutofillApiError
extension AutofillApiError: Equatable, Hashable
extension AutofillApiError: Foundation.LocalizedError
-
An error that can be returned from Rust code.
See moreDeclaration
Swift
public enum CrashTestError
extension CrashTestError: Equatable, Hashable
extension CrashTestError: Foundation.LocalizedError
-
An event that happened on the user’s account.
If the application has registered a [
See moreDevicePushSubscription
] as part of its device record, then the Firefox Accounts server can send push notifications about important events that happen on the user’s account. This enum represents the different kinds of event that can occur.Declaration
Swift
public enum AccountEvent
extension AccountEvent: Equatable, Hashable
-
The result of invoking a “close tabs” command.
If [
FirefoxAccount::close_tabs
] is called with more URLs than can fit into a single command payload, the URLs will be chunked and sent in multiple commands.Chunking breaks the atomicity of a “close tabs” command, but reduces the number of these commands that FxA sends to other devices. This is critical for platforms like iOS, where every command triggers a push message that must show a user-visible notification.
See moreDeclaration
Swift
public enum CloseTabsResult
extension CloseTabsResult: Equatable, Hashable
-
A “capability” offered by a device.
In the FxA ecosystem, connected devices may advertize their ability to respond to various “commands” that can be invoked by other devices. The details of executing these commands are encapsulated as part of the FxA Client component, so consumers simply need to select which ones they want to support, and can use the variants of this enum to do so.
See moreDeclaration
Swift
public enum DeviceCapability
extension DeviceCapability: Equatable, Hashable
-
Generic error type thrown by many [
FirefoxAccount
] operations.Precise details of the error are hidden from consumers, mostly due to limitations of how we expose this API to other languages. The type of the error indicates how the calling code should respond.
See moreDeclaration
Swift
public enum FxaError
extension FxaError: Equatable, Hashable
extension FxaError: Foundation.LocalizedError
-
Declaration
Swift
public enum FxaEvent
extension FxaEvent: Equatable, Hashable
-
Declaration
Swift
public enum FxaRustAuthState
extension FxaRustAuthState: Equatable, Hashable
-
FxA server to connect to
See moreDeclaration
Swift
public enum FxaServer
extension FxaServer: Equatable, Hashable
-
Declaration
Swift
public enum FxaState
extension FxaState: Equatable, Hashable
-
Declaration
Swift
public enum FxaStateCheckerEvent
extension FxaStateCheckerEvent: Equatable, Hashable
-
Declaration
Swift
public enum FxaStateCheckerState
extension FxaStateCheckerState: Equatable, Hashable
-
A command invoked by another device.
This enum represents all possible commands that can be invoked on the device. It is the responsibility of the application to interpret each command.
See moreDeclaration
Swift
public enum IncomingDeviceCommand
extension IncomingDeviceCommand: Equatable, Hashable
-
These are the errors returned by our public API.
See moreDeclaration
Swift
public enum LoginsApiError
extension LoginsApiError: Equatable, Hashable
extension LoginsApiError: Foundation.LocalizedError
-
Declaration
Swift
public enum EnrollmentChangeEventType
extension EnrollmentChangeEventType: Equatable, Hashable
-
Declaration
Swift
public enum NimbusError
extension NimbusError: Equatable, Hashable
extension NimbusError: Foundation.LocalizedError
-
Declaration
Swift
public enum BookmarkItem
extension BookmarkItem: Equatable, Hashable
-
Where the item should be placed.
See moreDeclaration
Swift
public enum BookmarkPosition
extension BookmarkPosition: Equatable, Hashable
-
Declaration
Swift
public enum ConnectionType
extension ConnectionType: Equatable, Hashable
-
Declaration
Swift
public enum DocumentType
extension DocumentType: Equatable, Hashable
-
Frecency threshold options for fetching top frecent sites. Requests a page that was visited with a frecency score greater or equal to the value associated with the enums
See moreDeclaration
Swift
public enum FrecencyThresholdOption
extension FrecencyThresholdOption: Equatable, Hashable
-
The action to take when recording a history metadata observation for a page that doesn’t have an entry in the history database.
See moreDeclaration
Swift
public enum HistoryMetadataPageMissingBehavior
extension HistoryMetadataPageMissingBehavior: Equatable, Hashable
-
Declaration
Swift
public enum InsertableBookmarkItem
extension InsertableBookmarkItem: Equatable, Hashable
-
Declaration
Swift
public enum PlacesApiError
extension PlacesApiError: Equatable, Hashable
extension PlacesApiError: Foundation.LocalizedError
-
Declaration
Swift
public enum VisitType
extension VisitType: Equatable, Hashable
-
The types of supported native bridges.
FCM = Google Android Firebase Cloud Messaging ADM = Amazon Device Messaging for FireTV APNS = Apple Push Notification System for iOS
Please contact services back-end for any additional bridge protocols.
See moreDeclaration
Swift
public enum BridgeType
extension BridgeType: Equatable, Hashable
-
The main Error returned from the Push component, each variant describes a different error
See moreDeclaration
Swift
public enum PushApiError
extension PushApiError: Equatable, Hashable
extension PushApiError: Foundation.LocalizedError
-
Supported protocols for push “Https” is default, and “Http” is only supported for tests
See moreDeclaration
Swift
public enum PushHttpProtocol
extension PushHttpProtocol: Equatable, Hashable
-
Public error class, this is what we return to consumers
See moreDeclaration
Swift
public enum RemoteSettingsError
extension RemoteSettingsError: Equatable, Hashable
extension RemoteSettingsError: Foundation.LocalizedError
-
The Remote Settings server that the client should use.
See moreDeclaration
Swift
public enum RemoteSettingsServer
extension RemoteSettingsServer: Equatable, Hashable
-
Declaration
Swift
public enum Level
extension Level: Equatable, Hashable
-
Declaration
Swift
public enum GeonameMatchType
extension GeonameMatchType: Equatable, Hashable
-
The type of a geoname.
See moreDeclaration
Swift
public enum GeonameType
extension GeonameType: Equatable, Hashable
-
What should be interrupted when [SuggestStore::interrupt] is called?
See moreDeclaration
Swift
public enum InterruptKind
extension InterruptKind: Equatable, Hashable
-
The error type for all Suggest component operations. These errors are exposed to your application, which should handle them as needed.
See moreDeclaration
Swift
public enum SuggestApiError
extension SuggestApiError: Equatable, Hashable
extension SuggestApiError: Foundation.LocalizedError
-
Per-provider configuration data.
See moreDeclaration
Swift
public enum SuggestProviderConfig
extension SuggestProviderConfig: Equatable, Hashable
-
A suggestion from the database to show in the address bar.
See moreDeclaration
Swift
public enum Suggestion
extension Suggestion: Equatable, Hashable
-
A provider is a source of search suggestions.
See moreDeclaration
Swift
public enum SuggestionProvider : UInt8
extension SuggestionProvider: Equatable, Hashable
-
Enumeration for the different types of device.
Firefox Accounts separates devices into broad categories for display purposes, such as distinguishing a desktop PC from a mobile phone. Upon signin, the application should inspect the device it is running on and select an appropriate [
See moreDeviceType
] to include in its device registration record.Declaration
Swift
public enum DeviceType
extension DeviceType: Equatable, Hashable
-
Declaration
Swift
public enum ServiceStatus
extension ServiceStatus: Equatable, Hashable
-
Declaration
Swift
public enum SyncEngineSelection
extension SyncEngineSelection: Equatable, Hashable
-
Declaration
Swift
public enum SyncManagerError
extension SyncManagerError: Equatable, Hashable
extension SyncManagerError: Foundation.LocalizedError
-
Declaration
Swift
public enum SyncReason
extension SyncReason: Equatable, Hashable
-
A command which should be sent to a remote device.
See moreDeclaration
Swift
public enum RemoteCommand
extension RemoteCommand: Equatable, Hashable
-
Declaration
Swift
public enum TabsApiError
extension TabsApiError: Equatable, Hashable
extension TabsApiError: Foundation.LocalizedError