Builder

class Builder

Constructors

Builder
Link copied to clipboard
open fun Builder()

Functions

acceptExpired
Link copied to clipboard
open fun acceptExpired(acceptExpired: Boolean): TileRegionLoadOptions.Builder
Accepts expired data when loading tiles.
averageBytesPerSecond
Link copied to clipboard
open fun averageBytesPerSecond(@Nullable averageBytesPerSecond: Integer): TileRegionLoadOptions.Builder
Limits the download speed of the tile region.
build
Link copied to clipboard
open fun build(): TileRegionLoadOptions
descriptors
Link copied to clipboard
open fun descriptors(@Nullable descriptors: List<TilesetDescriptor>): TileRegionLoadOptions.Builder
The tile region's tileset descriptors.
extraOptions
Link copied to clipboard
open fun extraOptions(@Nullable extraOptions: Value): TileRegionLoadOptions.Builder
Extra tile region load options.
geometry
Link copied to clipboard
open fun geometry(@Nullable geometry: Geometry): TileRegionLoadOptions.Builder
The tile region's associated geometry.
metadata
Link copied to clipboard
open fun metadata(@Nullable metadata: Value): TileRegionLoadOptions.Builder
A custom Mapbox Value associated with this tile region for storing metadata.
networkRestriction
Link copied to clipboard
open fun networkRestriction(@NonNull networkRestriction: NetworkRestriction): TileRegionLoadOptions.Builder
Controls which networks may be used to load the tile.
startLocation
Link copied to clipboard
open fun startLocation(@Nullable startLocation: Point): TileRegionLoadOptions.Builder
Starts loading the tile region at the given location and then proceeds to tiles that are further away from it.