MapboxSearchController
public class MapboxSearchController : UIViewController
extension MapboxSearchController: SearchEngineDelegate
Undocumented
-
Undocumented
Declaration
Swift
public var favoritesProvider: FavoritesProvider -
Undocumented
Declaration
Swift
public var historyProvider: HistoryProvider -
Undocumented
Declaration
Swift
public var categorySearchEngine: CategorySearchEngine -
Undocumented
Declaration
Swift
public var searchEngine: SearchEngine -
Undocumented
Declaration
Swift
public weak var delegate: SearchControllerDelegate? -
Instantiate MapboxSearchController with explicit accessToken and custom location provider
Declaration
Swift
public required init(accessToken: String, locationProvider: LocationProvider? = DefaultLocationProvider())Parameters
accessTokenMapbox public access token. Checkout
init(locationProvider:)tolocationProviderCustom LocationProvider implementation to be used with
LocationStrategy.defaultinsearchfunction of SearchSessions -
MapboxSearchController initializer with accessToken taken from application Info.plist
Access token is expected to be at
MGLMapboxAccessTokenkey in application Info.plist. Missing accessToken will trigger fatalErrorDeclaration
Swift
public required init(locationProvider: LocationProvider? = DefaultLocationProvider())Parameters
locationProviderCustom LocationProvider implementation to be used with
LocationStrategy.defaultinsearchfunction of SearchSessions -
Undocumented
Declaration
Swift
public override func viewDidLoad() -
Undocumented
Declaration
Swift
public override func viewWillAppear(_ animated: Bool) -
Undocumented
Declaration
Swift
public override func viewDidDisappear(_ animated: Bool) -
Declaration
Swift
public func resultsUpdated(searchEngine: SearchEngine) -
Declaration
Swift
public func resolvedResult(result: SearchResult) -
Declaration
Swift
public func searchErrorHappened(searchError: SearchError)
-
Undocumented
Declaration
Swift
public func searchQueryDidChanged(_ newQuery: String?) -
Undocumented
Declaration
Swift
public func searchTextFieldBeginEditing() -
Undocumented
Declaration
Swift
public func cancelSearch()
MapboxSearchController Class Reference