MapboxMapsOptionsPlatformInterface class abstract interface

Abstract interface for managing global Mapbox Maps configuration options.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearData() Future<void>
Clears all temporary map data from the data path.
getAssetPath() Future<String>
The path to the Maps asset directory. Ignored on Android.
getBaseUrl() Future<String>
The base URL used for Mapbox HTTP requests. Defaults to https://api.mapbox.com.
getDataPath() Future<String>
The path to the Maps data directory used for offline storage.
getFlutterAssetPath(String? flutterAssetUri) Future<String?>
Resolves a Flutter asset URI (e.g. asset://assets/path.glb) to a platform-native path usable by the Maps runtime. Returns the input unchanged when flutterAssetUri is null or not a Flutter asset URI.
getLanguage() Future<String?>
The BCP-47 language preference, if set.
getTileStoreUsageMode() Future<TileStoreUsageMode>
The tile store usage mode. Defaults to TileStoreUsageMode.READ_ONLY.
getWorldview() Future<String?>
The ISO 3166-1 alpha-2 worldview preference, if set.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAssetPath(String path) → void
Sets the path to the Maps asset directory.
setBaseUrl(String url) → void
Sets the base URL used for Mapbox HTTP requests.
setDataPath(String path) → void
Sets the path to the Maps data directory.
setLanguage(String? language) → void
Sets the language preference as a BCP-47 tag.
setTileStoreUsageMode(TileStoreUsageMode mode) → void
Sets the tile store usage mode.
setWorldview(String? worldview) → void
Sets the worldview preference as an ISO 3166-1 alpha-2 country code.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited