Represents a set of data about a physical place. More...
#import <SYPlacesManager.h>
Public Types | |
typedef void(^ | SYPlacesManagerLoadPlacesBlock) (NSArray< SYPlace * > *_Nullable places, NSError *_Nullable error) |
Type of completion block for asynchronous loading places. More... | |
typedef void(^ | SYPlacesManagerLoadPlaceLinkBlock) (SYPlaceLink *_Nullable link, NSError *_Nullable error) |
typedef void(^ | SYPlacesManagerAddIndividualPlacesBlock) (NSArray< SYIndividualPlaceId * > *_Nullable placeIds, NSError *_Nullable error) |
typedef void(^ | SYPlacesManagerRemoveIndividualPlacesBlock) (NSError *_Nullable error) |
typedef void(^ | SYPlacesManagerGetAvailableCategoriesBlock) (NSArray< SYPlaceCategoryGroupVisibility * > *_Nullable groups, NSError *_Nullable error) |
typedef void(^ | SYPlacesManagerSetVisibleCategoriesBlock) (NSError *_Nullable error) |
Instance Methods | |
((unavailable("Use +[SYPlaces sharedPlaces] instead.") | - __attribute__ |
SYPlaces is singleton, use [SYPlaces sharedPlaces] to access singleton instance. More... | |
(nonnull SYTask *) | - loadPlace:withCompletion: |
Load place detail information about map POI object. More... | |
(nonnull SYTask *) | - loadPlaces:withCompletion: |
Load places detail information about map POI objects. More... | |
(nonnull SYTask *) | - loadCity:withCompletion: |
Load detail information about map city object. More... | |
(nonnull SYTask *) | - loadExternalPlaceId:withCompletion: |
Load external place id. More... | |
(nonnull SYTask *) | - loadExternalPlaceIds:withCompletion: |
Load external place ids. More... | |
(nonnull SYTask *) | - loadEVConnector:withCompletion: |
Load ev connector detail informations about map POI EV Station object. More... | |
(void) | - addIndividualPlaces:completion: |
Add Individual Places. After the callback is delivered, these places shall be visible on the Map (if enabled) and also be present in the Navigation analyzers. Places with same identifiers will be replaced. More... | |
(void) | - removeIndividualPlaces:completion: |
Remove Individual Places. More... | |
(void) | - loadPlaceLinkWithId:completion: |
Load PlaceLink corresponding to the IndividualPlace with given id. More... | |
(void) | - getAvailableCategoriesWithCompletion: |
Get available groups of categories, which could be visible or hidden. More... | |
(void) | - setVisibleCategories:withCompletion: |
Set groups of categories with flag, if places of these categories should be visible or not. More... | |
Class Methods | |
(nonnull SYPlacesManager *) | + sharedPlaces |
Returns SYPlaces singleton instance. More... | |
((unavailable("Use +[SYPlaces sharedPlaces] instead.") | + __attribute__ |
Represents a set of data about a physical place.
- (typedef void(^ SYPlacesManagerLoadPlacesBlock) (NSArray< SYPlace * > *_Nullable places, NSError *_Nullable error)) |
Type of completion block for asynchronous loading places.
- (typedef void(^ SYPlacesManagerLoadPlaceLinkBlock) (SYPlaceLink *_Nullable link, NSError *_Nullable error)) |
- (typedef void(^ SYPlacesManagerAddIndividualPlacesBlock) (NSArray< SYIndividualPlaceId * > *_Nullable placeIds, NSError *_Nullable error)) |
- (typedef void(^ SYPlacesManagerRemoveIndividualPlacesBlock) (NSError *_Nullable error)) |
- (typedef void(^ SYPlacesManagerGetAvailableCategoriesBlock) (NSArray< SYPlaceCategoryGroupVisibility * > *_Nullable groups, NSError *_Nullable error)) |
- (typedef void(^ SYPlacesManagerSetVisibleCategoriesBlock) (NSError *_Nullable error)) |
+ (nonnull SYPlacesManager*) sharedPlaces |
Returns SYPlaces singleton instance.
- ((unavailable("Use +[SYPlaces sharedPlaces] instead.") __attribute__ |
SYPlaces is singleton, use [SYPlaces sharedPlaces] to access singleton instance.
+ ((unavailable("Use +[SYPlaces sharedPlaces] instead.") __attribute__ |
- (nonnull SYTask*) loadPlace: | (nonnull SYPlaceLink *) | link | |
withCompletion: | (nonnull void(^)(SYPlace *_Nullable place, NSError *_Nullable error)) | completion | |
Load place detail information about map POI object.
- (nonnull SYTask*) loadPlaces: | (nonnull NSArray< SYPlaceLink * > *) | links | |
withCompletion: | (nonnull SYPlacesManagerLoadPlacesBlock) | completion | |
Load places detail information about map POI objects.
- (nonnull SYTask*) loadCity: | (nonnull SYCityLink *) | link | |
withCompletion: | (nonnull void(^)(SYCity *_Nullable city, NSError *_Nullable error)) | completion | |
Load detail information about map city object.
- (nonnull SYTask*) loadExternalPlaceId: | (nonnull SYPlaceLink *) | link | |
withCompletion: | (nonnull void(^)(NSData *_Nullable id, NSError *_Nullable error)) | completion | |
Load external place id.
- (nonnull SYTask*) loadExternalPlaceIds: | (nonnull NSArray< SYPlaceLink * > *) | links | |
withCompletion: | (nonnull void(^)(NSArray< NSData * > *_Nullable id, NSError *_Nullable error)) | completion | |
Load external place ids.
- (nonnull SYTask*) loadEVConnector: | (nonnull SYPlaceLink *) | link | |
withCompletion: | (nonnull void(^)(NSArray< SYEVConnector * > *_Nullable connectors, NSError *_Nullable error)) | completion | |
Load ev connector detail informations about map POI EV Station object.
- (void) addIndividualPlaces: | (nonnull NSArray< SYIndividualPlaceData * > *) | places | |
completion: | (nonnull SYPlacesManagerAddIndividualPlacesBlock) | completion | |
Add Individual Places. After the callback is delivered, these places shall be visible on the Map (if enabled) and also be present in the Navigation analyzers. Places with same identifiers will be replaced.
places | Places to be added. |
completion | Callback of the operation. |
- (void) removeIndividualPlaces: | (nonnull NSArray< SYIndividualPlaceId * > *) | placeIds | |
completion: | (nonnull SYPlacesManagerRemoveIndividualPlacesBlock) | completion | |
Remove Individual Places.
places | IDs belonging to the places, which are to be removed. |
completion | Callback of the operation. |
- (void) loadPlaceLinkWithId: | (nonnull SYIndividualPlaceId *) | placeId | |
completion: | (nonnull SYPlacesManagerLoadPlaceLinkBlock) | completion | |
Load PlaceLink corresponding to the IndividualPlace with given id.
placeId | ID of the place returned by addIndividualPlaces |
completion | Callback of the operation. |
- (void) getAvailableCategoriesWithCompletion: | (nonnull SYPlacesManagerGetAvailableCategoriesBlock) | completion |
Get available groups of categories, which could be visible or hidden.
completion | Callback of the operation. |
- (void) setVisibleCategories: | (nonnull NSArray< SYPlaceCategoryGroupVisibility * > *) | categories | |
withCompletion: | (nonnull SYPlacesManagerSetVisibleCategoriesBlock) | completion | |
Set groups of categories with flag, if places of these categories should be visible or not.
categories | Array of categories with user visibility preference. |
completion | Callback of the operation. |