Provides custom places operations. The purpose is to manage custom places: usiing of offline places or online places mode, installation and unistallation of offline places. Online places are stored in online services and loaded when they are shown on a map view. Offline places are downloaded from online services and stored in device in advance, so they can be shown also when device is offline.
More...
#import <SYCustomPlacesManager.h>
Provides custom places operations. The purpose is to manage custom places: usiing of offline places or online places mode, installation and unistallation of offline places. Online places are stored in online services and loaded when they are shown on a map view. Offline places are downloaded from online services and stored in device in advance, so they can be shown also when device is offline.
◆ sharedManager
◆ __attribute__ [1/2]
◆ __attribute__ [2/2]
◆ getInstalledDatasetsWithSource:completion:
| - (void) getInstalledDatasetsWithSource: |
|
(SYCustomPlacesDatasetSource) |
source |
| completion: |
|
(nonnull SYCustomPlacesInstalledDatasetsCompletionBlock) |
completion |
|
|
| |
Asynchronously get info about installed custom places datasets.
◆ installOfflinePlacesFromDatasets:forCountry:progress:completion:
| - (nonnull SYTask*) installOfflinePlacesFromDatasets: |
|
(nonnull NSArray< NSString * > *) |
datasets |
| forCountry: |
|
(nullable SYCountryIso *) |
countryIso |
| progress: |
|
(nullable SYCustomPlacesInstallProgressBlock) |
progress |
| completion: |
|
(nonnull SYCustomPlacesDefaultCompletionBlock) |
completion |
|
|
| |
Downloads and installs offline places datasets for specific country (or for all countries if country parameter is nil).
- Parameters
-
| datasets | array of dataset IDs |
| countryIso | country ISO of installed offline places. If country is nil, the whole datasets will be installed, without limitation to a country. |
| progress | block used as an optional callback for the progress of this function |
| completion | block used as a callback for the result of this function |
- Returns
- SYTask cancelation object
◆ installOfflinePlacesFromJson:completion:
| - (void) installOfflinePlacesFromJson: |
|
(nonnull NSString *) |
json |
| completion: |
|
(nonnull SYCustomPlacesDefaultCompletionBlock) |
completion |
|
|
| |
Installs Offline Places from provided JSON string.
- Parameters
-
◆ installCategoriesFromJson:completion:
| - (void) installCategoriesFromJson: |
|
(nonnull NSString *) |
json |
| completion: |
|
(nonnull SYCustomPlacesDefaultCompletionBlock) |
completion |
|
|
| |
Installs Custom Places Categories from provided JSON string.
- Parameters
-
◆ uninstallOfflinePlacesFromDatasets:forCountry:completion:
| - (void) uninstallOfflinePlacesFromDatasets: |
|
(nonnull NSArray< NSString * > *) |
datasets |
| forCountry: |
|
(nullable SYCountryIso *) |
countryIso |
| completion: |
|
(nonnull SYCustomPlacesDefaultCompletionBlock) |
completion |
|
|
| |
Uninstalls offline places from specified datasets for the requested country.
- Parameters
-
| datasets | array of dataset IDs |
| countryIso | country ISO of installed offline places. If country is nil, the whole datasets will be uninstalled, without limitation to a country. |
| completion | block used as a callback for this function |
◆ uninstallOfflinePlacesForCountry:completion:
| - (void) uninstallOfflinePlacesForCountry: |
|
(nonnull SYCountryIso *) |
countryIso |
| completion: |
|
(nonnull SYCustomPlacesDefaultCompletionBlock) |
completion |
|
|
| |
Uninstalls offline places of the requested country.
- Parameters
-
| countryIso | country ISO of installed offline places |
| completion | block used as a callback for this function |
◆ updateInstalledPlacesWithProgress:completion:
| - (nonnull SYTask*) updateInstalledPlacesWithProgress: |
|
(nullable SYCustomPlacesInstallProgressBlock) |
progress |
| completion: |
|
(nonnull SYCustomPlacesDefaultCompletionBlock) |
completion |
|
|
| |
Downloads and installs updates for offline places of all installed countries.
- Parameters
-
| progress | block used as an optional callback for the progress of this function |
| completion | block used as a callback for the result of this function |
- Returns
- SYTask cancelation object
◆ getActiveDatasetIdsWithCompletion:
| - (void) getActiveDatasetIdsWithCompletion: |
|
(nonnull SYCustomPlacesGetActiveDatasetIdsCompletionBlock) |
completion |
|
Get active custom places datasets. Only places from active datasets are visible on map and can be found using SYCustomPlacesSearch.
◆ setActiveDatasetIds:completion:
| - (void) setActiveDatasetIds: |
|
(nonnull NSArray< NSString * > *) |
datasets |
| completion: |
|
(nonnull SYCustomPlacesDefaultCompletionBlock) |
completion |
|
|
| |
Set active custom places datasets. Only places from active datasets are visible on map and can be found using SYCustomPlacesSearch.
◆ mode
| - (SYCustomPlacesMode) mode |
|
readwritenonatomicassign |
Custom places mode: Online or Offline.
◆ delegate
◆ defaultDatasetId
| - (NSString*) defaultDatasetId |
|
readnonatomicassign |
ID of the default custom places dataset.
The documentation for this class was generated from the following file: