Holds values for resource options.
More...
#include <resource_options.hpp>
Holds values for resource options.
Definition at line 12 of file resource_options.hpp.
◆ ResourceOptions() [1/2]
mbgl::ResourceOptions::ResourceOptions |
( |
| ) |
|
◆ ~ResourceOptions()
mbgl::ResourceOptions::~ResourceOptions |
( |
| ) |
|
◆ ResourceOptions() [2/2]
◆ apiKey()
const std::string& mbgl::ResourceOptions::apiKey |
( |
| ) |
const |
Gets the previously set (or default) Mapbox access token.
- Returns
- const std::string& Mapbox access token.
◆ assetPath()
const std::string& mbgl::ResourceOptions::assetPath |
( |
| ) |
const |
Gets the previously set (or default) asset path.
- Returns
- asset path
◆ cachePath()
const std::string& mbgl::ResourceOptions::cachePath |
( |
| ) |
const |
Gets the previously set (or default) cache path.
- Returns
- cache path
◆ clone()
◆ Default()
Returns default resource options.
- Returns
- Resource options.
◆ maximumCacheSize()
uint64_t mbgl::ResourceOptions::maximumCacheSize |
( |
| ) |
const |
Gets the previously set (or default) maximum allowed cache size.
- Returns
- maximum allowed cache database size in bytes.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ platformContext()
void* mbgl::ResourceOptions::platformContext |
( |
| ) |
const |
Gets the previously set (or default) platform context.
- Returns
- Platform context.
◆ tileServerOptions()
◆ withApiKey()
◆ withAssetPath()
Sets the asset path, which is the root directory from where the asset:// scheme gets resolved in a style.
- Parameters
-
- Returns
- ResourceOptions for chaining options together.
◆ withCachePath()
Sets the cache path.
- Parameters
-
- Returns
- ResourceOptions for chaining options together.
◆ withMaximumCacheSize()
ResourceOptions& mbgl::ResourceOptions::withMaximumCacheSize |
( |
uint64_t |
size | ) |
|
Sets the maximum cache size.
- Parameters
-
size | Cache maximum size in bytes. |
- Returns
- reference to ResourceOptions for chaining options together.
◆ withPlatformContext()
ResourceOptions& mbgl::ResourceOptions::withPlatformContext |
( |
void * |
context | ) |
|
Sets the platform context. A platform context is usually an object that assists the creation of a file source.
- Parameters
-
- Returns
- reference to ResourceOptions for chaining options together.
◆ withTileServerOptions()
Sets the tile server options..
- Parameters
-
tileServerOptions | Tile server options. |
- Returns
- ResourceOptions for chaining options together.
The documentation for this class was generated from the following file: