Skip to content

Commit

Permalink
docs: codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian committed Nov 18, 2024
1 parent a77ac3b commit 339ddd8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -5051,17 +5051,17 @@
"name": "progressListener",
"description": "Callback that listens for status events while downloading the offline resource.",
"type": {
"name": "Callback"
"name": "ProgressListener"
},
"optional": true
"optional": false
},
{
"name": "errorListener",
"description": "Callback that listens for status events while downloading the offline resource.",
"type": {
"name": "Callback"
"name": "ErrorListener"
},
"optional": true
"optional": false
}
],
"examples": [
Expand Down Expand Up @@ -5299,23 +5299,23 @@
"name": "packName",
"description": "Name of the offline pack.",
"type": {
"name": "String"
"name": "string"
},
"optional": false
},
{
"name": "progressListener",
"description": "Callback that listens for status events while downloading the offline resource.",
"type": {
"name": "Callback"
"name": "ProgressListener"
},
"optional": false
},
{
"name": "errorListener",
"description": "Callback that listens for status events while downloading the offline resource.",
"type": {
"name": "Callback"
"name": "ErrorListener"
},
"optional": false
}
Expand Down
12 changes: 6 additions & 6 deletions docs/offlineManager.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ OfflineManager implements a singleton (shared object) that manages offline packs


## Methods
### `createPack(options, [progressListener], [errorListener])`
### `createPack(options, progressListener, errorListener)`

Creates and registers an offline pack that downloads the resources needed to use the given region offline.

#### Arguments
| Name | Type | Required | Description |
| ---- | :--: | :------: | :----------: |
| `options` | `OfflineCreatePackOptions` | `Yes` | Create options for a offline pack that specifices zoom levels, style url, and the region to download. |
| `progressListener` | `Callback` | `No` | Callback that listens for status events while downloading the offline resource. |
| `errorListener` | `Callback` | `No` | Callback that listens for status events while downloading the offline resource. |
| `progressListener` | `ProgressListener` | `Yes` | Callback that listens for status events while downloading the offline resource. |
| `errorListener` | `ErrorListener` | `Yes` | Callback that listens for status events while downloading the offline resource. |



Expand Down Expand Up @@ -199,9 +199,9 @@ Subscribe to download status/error events for the requested offline pack.<br/>No
#### Arguments
| Name | Type | Required | Description |
| ---- | :--: | :------: | :----------: |
| `packName` | `String` | `Yes` | Name of the offline pack. |
| `progressListener` | `Callback` | `Yes` | Callback that listens for status events while downloading the offline resource. |
| `errorListener` | `Callback` | `Yes` | Callback that listens for status events while downloading the offline resource. |
| `packName` | `string` | `Yes` | Name of the offline pack. |
| `progressListener` | `ProgressListener` | `Yes` | Callback that listens for status events while downloading the offline resource. |
| `errorListener` | `ErrorListener` | `Yes` | Callback that listens for status events while downloading the offline resource. |



Expand Down

0 comments on commit 339ddd8

Please sign in to comment.