ServiceProvider
public class ServiceProvider : ServiceProviderProtocol
Services provider for SearchEngine
-
Customize API host URL with a value from the Info.plist Also supports reading a process argument when in non-Release UITest builds Read-only property. To change the customBaseURL for an engine programmatically, you would typically use the
init(accessToken:locationProvider:defaultSearchOptions:apiType:baseURL:)function on a SearchEngine subclass type.Declaration
Swift
public static var customBaseURL: String? { get } -
LocalDataProvider for favorites records
Declaration
Swift
public let localFavoritesProvider: FavoritesProvider -
LocalDataProvider for history records
Declaration
Swift
public let localHistoryProvider: HistoryProvider -
MapboxMobileEvents manager for analytics usage
Declaration
Swift
public let eventsManager: EventsManager -
Responsible for sending feedback related events.
Declaration
Swift
public private(set) lazy var feedbackManager: FeedbackManager { get set } -
Shared instance of ServiceProvider
Declaration
Swift
public static let shared: ServiceProvider
ServiceProvider Class Reference