Enumerations
The following enumerations are available globally.
-
Declaration
Swift
public enum MozAdsCacheMode : Equatable, Hashableextension MozAdsCacheMode: Sendable -
Declaration
Swift
public enum MozAdsClientApiError : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension MozAdsClientApiError: Sendable -
Declaration
Swift
public enum MozAdsEnvironment : Equatable, Hashableextension MozAdsEnvironment: Sendable -
Declaration
Swift
public enum MozAdsIabContentTaxonomy : Equatable, Hashableextension MozAdsIabContentTaxonomy: Sendable -
Declaration
Swift
public enum OhttpError : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension OhttpError: Sendable -
Declaration
Swift
public enum AutofillApiError : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension AutofillApiError: Sendable -
Declaration
Swift
public enum ApiError : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension ApiError: Sendable -
An error that can be returned from Rust code.
See moreDeclaration
Swift
public enum CrashTestError : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension CrashTestError: Sendable -
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 : Equatable, Hashableextension AccountEvent: Sendable -
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 : Equatable, Hashableextension CloseTabsResult: Sendable -
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 : Equatable, Hashableextension DeviceCapability: Sendable -
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 : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension FxaError: Sendable -
Declaration
Swift
public enum FxaEvent : Equatable, Hashableextension FxaEvent: Sendable -
Declaration
Swift
public enum FxaRustAuthState : Equatable, Hashableextension FxaRustAuthState: Sendable -
FxA server to connect to
See moreDeclaration
Swift
public enum FxaServer : Equatable, Hashableextension FxaServer: Sendable -
Declaration
Swift
public enum FxaState : Equatable, Hashableextension FxaState: Sendable -
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 : Equatable, Hashableextension IncomingDeviceCommand: Sendable -
A bulk insert result entry, returned by
See moreadd_manyandadd_many_with_metaDeclaration
Swift
public enum BulkResultEntry : Equatable, Hashableextension BulkResultEntry: Sendable -
Declaration
Swift
public enum LoginOrErrorMessage : Equatable, Hashableextension LoginOrErrorMessage: Sendable -
These are the errors returned by our public API.
See moreDeclaration
Swift
public enum LoginsApiError : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension LoginsApiError: Sendable -
Declaration
Swift
public enum CuratedRecommendationLocale : Equatable, Hashable, Codableextension CuratedRecommendationLocale: Sendable -
Declaration
Swift
public enum CuratedRecommendationsApiError : Swift.Error, Equatable, Hashable, Codable, Foundation.LocalizedErrorextension CuratedRecommendationsApiError: Sendable -
Declaration
Swift
public enum EnrollmentChangeEventType : Equatable, Hashableextension EnrollmentChangeEventType: Sendable -
Declaration
Swift
public enum NimbusError : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension NimbusError: Sendable -
Declaration
Swift
public enum PrefBranch : Equatable, Hashableextension PrefBranch: Sendable -
Declaration
Swift
public enum PrefUnenrollReason : Equatable, Hashableextension PrefUnenrollReason: Sendable -
Declaration
Swift
public enum BookmarkItem : Equatable, Hashableextension BookmarkItem: Sendable -
Where the item should be placed.
See moreDeclaration
Swift
public enum BookmarkPosition : Equatable, Hashableextension BookmarkPosition: Sendable -
Declaration
Swift
public enum ConnectionType : Equatable, Hashableextension ConnectionType: Sendable -
Declaration
Swift
public enum DocumentType : Equatable, Hashableextension DocumentType: Sendable -
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 : Equatable, Hashableextension FrecencyThresholdOption: Sendable -
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 : Equatable, Hashableextension HistoryMetadataPageMissingBehavior: Sendable -
Declaration
Swift
public enum InsertableBookmarkItem : Equatable, Hashableextension InsertableBookmarkItem: Sendable -
Declaration
Swift
public enum PlacesApiError : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension PlacesApiError: Sendable -
Declaration
Swift
public enum VisitType : Equatable, Hashableextension VisitType: Sendable -
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 : Equatable, Hashableextension BridgeType: Sendable -
The main Error returned from the Push component, each variant describes a different error
See moreDeclaration
Swift
public enum PushApiError : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension PushApiError: Sendable -
Supported protocols for push “Https” is default, and “Http” is only supported for tests
See moreDeclaration
Swift
public enum PushHttpProtocol : Equatable, Hashableextension PushHttpProtocol: Sendable -
Declaration
Swift
public enum RelayApiError : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension RelayApiError: Sendable -
Public error class, this is what we return to consumers
See moreDeclaration
Swift
public enum RemoteSettingsError : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension RemoteSettingsError: Sendable -
The Remote Settings server that the client should use.
See moreDeclaration
Swift
public enum RemoteSettingsServer : Equatable, Hashableextension RemoteSettingsServer: Sendable -
Declaration
Swift
public enum Level : Equatable, Hashableextension Level: Sendable -
The list of possible submission methods for search engine urls.
See moreDeclaration
Swift
public enum JsonEngineMethod : Equatable, Hashableextension JsonEngineMethod: Sendable -
Declaration
Swift
public enum SearchApiError : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension SearchApiError: Sendable -
The list of possible application names that are currently supported.
See moreDeclaration
Swift
public enum SearchApplicationName : Equatable, Hashableextension SearchApplicationName: Sendable -
Declaration
Swift
public enum SearchDeviceType : Equatable, Hashableextension SearchDeviceType: Sendable -
The list of acceptable classifications for a search engine.
See moreDeclaration
Swift
public enum SearchEngineClassification : Equatable, Hashableextension SearchEngineClassification: Sendable -
The list of possible update channels for a user’s build. Use
See moredefaultfor a self-build or an unknown channel.Declaration
Swift
public enum SearchUpdateChannel : Equatable, Hashableextension SearchUpdateChannel: Sendable -
Declaration
Swift
public enum AmpMatchingStrategy : Equatable, Hashableextension AmpMatchingStrategy: Sendable -
Declaration
Swift
public enum GeonameMatchType : Equatable, Hashableextension GeonameMatchType: Sendable -
The type of a geoname.
See moreDeclaration
Swift
public enum GeonameType : Equatable, Hashableextension GeonameType: Sendable -
What should be interrupted when [SuggestStore::interrupt] is called?
See moreDeclaration
Swift
public enum InterruptKind : Equatable, Hashableextension InterruptKind: Sendable -
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 : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension SuggestApiError: Sendable -
Per-provider configuration data.
See moreDeclaration
Swift
public enum SuggestProviderConfig : Equatable, Hashableextension SuggestProviderConfig: Sendable -
A suggestion from the database to show in the address bar.
See moreDeclaration
Swift
public enum Suggestion : Equatable, Hashableextension Suggestion: Sendable -
A provider is a source of search suggestions. Please preserve the integer values after removing or adding providers. Provider configs are associated with integer keys stored in the database.
See moreDeclaration
Swift
public enum SuggestionProvider : UInt8, Equatable, Hashableextension SuggestionProvider: Sendable -
Subject type for Yelp suggestion.
See moreDeclaration
Swift
public enum YelpSubjectType : UInt8, Equatable, Hashableextension YelpSubjectType: Sendable -
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 : Equatable, Hashableextension DeviceType: Sendable -
Declaration
Swift
public enum ServiceStatus : Equatable, Hashableextension ServiceStatus: Sendable -
Declaration
Swift
public enum SyncEngineSelection : Equatable, Hashableextension SyncEngineSelection: Sendable -
Declaration
Swift
public enum SyncManagerError : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension SyncManagerError: Sendable -
Declaration
Swift
public enum SyncReason : Equatable, Hashableextension SyncReason: Sendable -
A command which should be sent to a remote device.
See moreDeclaration
Swift
public enum RemoteCommand : Equatable, Hashableextension RemoteCommand: Sendable -
Declaration
Swift
public enum TabsApiError : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension TabsApiError: Sendable -
Declaration
Swift
public enum WindowType : UInt8, Equatable, Hashableextension WindowType: Sendable -
Declaration
Swift
public enum TracingLevel : Equatable, Hashableextension TracingLevel: Sendable -
HTTP Methods.
The supported methods are the limited to what’s supported by android-components.
See moreDeclaration
Swift
public enum Method : UInt8, Equatable, Hashableextension Method: Sendable -
Declaration
Swift
public enum ViaductError : Swift.Error, Equatable, Hashable, Foundation.LocalizedErrorextension ViaductError: Sendable
Enumerations Reference