Enumerations
The following enumerations are available globally.
-
Declaration
Swift
public enum MozAdsCacheModeextension MozAdsCacheMode: Sendableextension MozAdsCacheMode: Equatable, Hashable -
Declaration
Swift
public enum MozAdsClientApiError : Swift.Errorextension MozAdsClientApiError: Equatable, Hashableextension MozAdsClientApiError: Foundation.LocalizedError -
Declaration
Swift
public enum MozAdsEnvironmentextension MozAdsEnvironment: Sendableextension MozAdsEnvironment: Equatable, Hashable -
Declaration
Swift
public enum MozAdsIabContentTaxonomyextension MozAdsIabContentTaxonomy: Sendableextension MozAdsIabContentTaxonomy: Equatable, Hashable -
Declaration
Swift
public enum OhttpError : Swift.Errorextension OhttpError: Equatable, Hashableextension OhttpError: Foundation.LocalizedError -
Declaration
Swift
public enum AutofillApiError : Swift.Errorextension AutofillApiError: Equatable, Hashableextension AutofillApiError: Foundation.LocalizedError -
Declaration
Swift
public enum ApiError : Swift.Errorextension ApiError: Equatable, Hashableextension ApiError: Foundation.LocalizedError -
An error that can be returned from Rust code.
See moreDeclaration
Swift
public enum CrashTestError : Swift.Errorextension CrashTestError: Equatable, Hashableextension 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 AccountEventextension AccountEvent: Sendableextension 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 CloseTabsResultextension CloseTabsResult: Sendableextension 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 DeviceCapabilityextension DeviceCapability: Sendableextension 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 : Swift.Errorextension FxaError: Equatable, Hashableextension FxaError: Foundation.LocalizedError -
Declaration
Swift
public enum FxaEventextension FxaEvent: Sendableextension FxaEvent: Equatable, Hashable -
Declaration
Swift
public enum FxaRustAuthStateextension FxaRustAuthState: Sendableextension FxaRustAuthState: Equatable, Hashable -
FxA server to connect to
See moreDeclaration
Swift
public enum FxaServerextension FxaServer: Sendableextension FxaServer: Equatable, Hashable -
Declaration
Swift
public enum FxaStateextension FxaState: Sendableextension FxaState: 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 IncomingDeviceCommandextension IncomingDeviceCommand: Sendableextension IncomingDeviceCommand: Equatable, Hashable -
A bulk insert result entry, returned by
See moreadd_manyandadd_many_with_metaDeclaration
Swift
public enum BulkResultEntryextension BulkResultEntry: Sendableextension BulkResultEntry: Equatable, Hashable -
Declaration
Swift
public enum LoginOrErrorMessageextension LoginOrErrorMessage: Sendableextension LoginOrErrorMessage: Equatable, Hashable -
These are the errors returned by our public API.
See moreDeclaration
Swift
public enum LoginsApiError : Swift.Errorextension LoginsApiError: Equatable, Hashableextension LoginsApiError: Foundation.LocalizedError -
Declaration
Swift
public enum CuratedRecommendationLocaleextension CuratedRecommendationLocale: Sendableextension CuratedRecommendationLocale: Equatable, Hashable -
Declaration
Swift
public enum CuratedRecommendationsApiError : Swift.Errorextension CuratedRecommendationsApiError: Equatable, Hashableextension CuratedRecommendationsApiError: Foundation.LocalizedError -
Declaration
Swift
public enum EnrollmentChangeEventTypeextension EnrollmentChangeEventType: Sendableextension EnrollmentChangeEventType: Equatable, Hashable -
Declaration
Swift
public enum NimbusError : Swift.Errorextension NimbusError: Equatable, Hashableextension NimbusError: Foundation.LocalizedError -
Declaration
Swift
public enum PrefBranchextension PrefBranch: Sendableextension PrefBranch: Equatable, Hashable -
Declaration
Swift
public enum PrefUnenrollReasonextension PrefUnenrollReason: Sendableextension PrefUnenrollReason: Equatable, Hashable -
Declaration
Swift
public enum BookmarkItemextension BookmarkItem: Sendableextension BookmarkItem: Equatable, Hashable -
Where the item should be placed.
See moreDeclaration
Swift
public enum BookmarkPositionextension BookmarkPosition: Sendableextension BookmarkPosition: Equatable, Hashable -
Declaration
Swift
public enum ConnectionTypeextension ConnectionType: Sendableextension ConnectionType: Equatable, Hashable -
Declaration
Swift
public enum DocumentTypeextension DocumentType: Sendableextension 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 FrecencyThresholdOptionextension FrecencyThresholdOption: Sendableextension 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 HistoryMetadataPageMissingBehaviorextension HistoryMetadataPageMissingBehavior: Sendableextension HistoryMetadataPageMissingBehavior: Equatable, Hashable -
Declaration
Swift
public enum InsertableBookmarkItemextension InsertableBookmarkItem: Sendableextension InsertableBookmarkItem: Equatable, Hashable -
Declaration
Swift
public enum PlacesApiError : Swift.Errorextension PlacesApiError: Equatable, Hashableextension PlacesApiError: Foundation.LocalizedError -
Declaration
Swift
public enum VisitTypeextension VisitType: Sendableextension 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 BridgeTypeextension BridgeType: Sendableextension BridgeType: Equatable, Hashable -
The main Error returned from the Push component, each variant describes a different error
See moreDeclaration
Swift
public enum PushApiError : Swift.Errorextension PushApiError: Equatable, Hashableextension PushApiError: Foundation.LocalizedError -
Supported protocols for push “Https” is default, and “Http” is only supported for tests
See moreDeclaration
Swift
public enum PushHttpProtocolextension PushHttpProtocol: Sendableextension PushHttpProtocol: Equatable, Hashable -
Declaration
Swift
public enum RelayApiError : Swift.Errorextension RelayApiError: Equatable, Hashableextension RelayApiError: Foundation.LocalizedError -
Public error class, this is what we return to consumers
See moreDeclaration
Swift
public enum RemoteSettingsError : Swift.Errorextension RemoteSettingsError: Equatable, Hashableextension RemoteSettingsError: Foundation.LocalizedError -
The Remote Settings server that the client should use.
See moreDeclaration
Swift
public enum RemoteSettingsServerextension RemoteSettingsServer: Sendableextension RemoteSettingsServer: Equatable, Hashable -
Declaration
Swift
public enum Levelextension Level: Sendableextension Level: Equatable, Hashable -
The list of possible submission methods for search engine urls.
See moreDeclaration
Swift
public enum JsonEngineMethodextension JsonEngineMethod: Sendableextension JsonEngineMethod: Equatable, Hashable -
Declaration
Swift
public enum SearchApiError : Swift.Errorextension SearchApiError: Equatable, Hashableextension SearchApiError: Foundation.LocalizedError -
The list of possible application names that are currently supported.
See moreDeclaration
Swift
public enum SearchApplicationNameextension SearchApplicationName: Sendableextension SearchApplicationName: Equatable, Hashable -
Declaration
Swift
public enum SearchDeviceTypeextension SearchDeviceType: Sendableextension SearchDeviceType: Equatable, Hashable -
The list of acceptable classifications for a search engine.
See moreDeclaration
Swift
public enum SearchEngineClassificationextension SearchEngineClassification: Sendableextension SearchEngineClassification: Equatable, Hashable -
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 SearchUpdateChannelextension SearchUpdateChannel: Sendableextension SearchUpdateChannel: Equatable, Hashable -
Declaration
Swift
public enum AmpMatchingStrategyextension AmpMatchingStrategy: Sendableextension AmpMatchingStrategy: Equatable, Hashable -
Declaration
Swift
public enum GeonameMatchTypeextension GeonameMatchType: Sendableextension GeonameMatchType: Equatable, Hashable -
The type of a geoname.
See moreDeclaration
Swift
public enum GeonameTypeextension GeonameType: Sendableextension GeonameType: Equatable, Hashable -
What should be interrupted when [SuggestStore::interrupt] is called?
See moreDeclaration
Swift
public enum InterruptKindextension InterruptKind: Sendableextension 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 : Swift.Errorextension SuggestApiError: Equatable, Hashableextension SuggestApiError: Foundation.LocalizedError -
Per-provider configuration data.
See moreDeclaration
Swift
public enum SuggestProviderConfigextension SuggestProviderConfig: Sendableextension SuggestProviderConfig: Equatable, Hashable -
A suggestion from the database to show in the address bar.
See moreDeclaration
Swift
public enum Suggestionextension Suggestion: Sendableextension Suggestion: Equatable, Hashable -
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 : UInt8extension SuggestionProvider: Sendableextension SuggestionProvider: Equatable, Hashable -
Subject type for Yelp suggestion.
See moreDeclaration
Swift
public enum YelpSubjectType : UInt8extension YelpSubjectType: Sendableextension YelpSubjectType: 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 DeviceTypeextension DeviceType: Sendableextension DeviceType: Equatable, Hashable -
Declaration
Swift
public enum ServiceStatusextension ServiceStatus: Sendableextension ServiceStatus: Equatable, Hashable -
Declaration
Swift
public enum SyncEngineSelectionextension SyncEngineSelection: Sendableextension SyncEngineSelection: Equatable, Hashable -
Declaration
Swift
public enum SyncManagerError : Swift.Errorextension SyncManagerError: Equatable, Hashableextension SyncManagerError: Foundation.LocalizedError -
Declaration
Swift
public enum SyncReasonextension SyncReason: Sendableextension SyncReason: Equatable, Hashable -
A command which should be sent to a remote device.
See moreDeclaration
Swift
public enum RemoteCommandextension RemoteCommand: Sendableextension RemoteCommand: Equatable, Hashable -
Declaration
Swift
public enum TabsApiError : Swift.Errorextension TabsApiError: Equatable, Hashableextension TabsApiError: Foundation.LocalizedError -
Declaration
Swift
public enum TracingLevelextension TracingLevel: Sendableextension TracingLevel: Equatable, Hashable -
HTTP Methods.
The supported methods are the limited to what’s supported by android-components.
See moreDeclaration
Swift
public enum Method : UInt8extension Method: Sendableextension Method: Equatable, Hashable -
Declaration
Swift
public enum ViaductError : Swift.Errorextension ViaductError: Equatable, Hashableextension ViaductError: Foundation.LocalizedError
Enumerations Reference