-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs from maps rnmapbox/maps@e30ffba
- Loading branch information
1 parent
7985ade
commit ae70436
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
custom_edit_url: https://github.com/rnmapbox/maps/blob/main/src/modules/offline/TileStore.ts | ||
--- | ||
|
||
|
||
|
||
```tsx | ||
import { tileStore } from '@rnmapbox/maps'; | ||
|
||
tileStore | ||
|
||
``` | ||
TileStore manages downloads and storage for requests to tile-related API endpoints, | ||
enforcing a disk usage quota: tiles available on disk may be deleted to make room for a new download. | ||
This interface can be used by an app developer to set the disk quota. | ||
|
||
|
||
|
||
## methods | ||
### setOption(key, domain, value) | ||
|
||
Sets additional options for this instance that are specific to a data type.<br/>Params:<br/>key – The configuration option that should be changed. Valid keys are listed in \c TileStoreOptions. domain – The data type this setting should be applied for. value – The value for the configuration option, or null if it should be reset. | ||
|
||
#### arguments | ||
| Name | Type | Required | Description | | ||
| ---- | :--: | :------: | :----------: | | ||
| `key` | `string` | `Yes` | | | ||
| `domain` | `TileDataDomain` | `Yes` | | | ||
| `value` | `TileDataValue` | `Yes` | | | ||
|
||
|
||
|