LandmarkStoreContextService

Objective-C


@interface LandmarkStoreContextService : NSObject

Swift

class LandmarkStoreContextService : NSObject

This class encapsulates landmark store context service information.

  • Register an already existing landmark store.

    Declaration

    Objective-C

    - (int)registerLandmarkStoreContext:(nonnull NSString *)name
                                   path:(nonnull NSString *)path;

    Swift

    func registerLandmarkStoreContext(_ name: String, path: String) -> Int32

    Parameters

    name

    The landmark store name. Must be unique, otherwise SDKErrorCodeKExist is returned.

    path

    The landmark store path.

    Return Value

    On success the landmark store ID.

  • Remove the landmark store context specified by ID.

    Declaration

    Objective-C

    - (SDKErrorCode)removeLandmarkStoreContext:(int)identifier;

    Swift

    func removeLandmarkStoreContext(_ identifier: Int32) -> SDKErrorCode

    Parameters

    identifier

    The ID of the landmark store context.

  • Get landmark store context by ID.

    Declaration

    Objective-C

    - (nonnull LandmarkStoreContext *)getLandmarkStoreContextWithIdentifier:
        (int)identifier;

    Swift

    func getLandmarkStoreContext(withIdentifier identifier: Int32) -> LandmarkStoreContext

    Parameters

    identifier

    The ID of the landmark store context.

  • Get landmark store context by name.

    Declaration

    Objective-C

    - (nonnull LandmarkStoreContext *)getLandmarkStoreContextWithName:
        (nonnull NSString *)storeName;

    Swift

    func getLandmarkStoreContext(withName storeName: String) -> LandmarkStoreContext

    Parameters

    storeName

    The name of the landmark store context.

  • Get the type of the landmark store.

    Declaration

    Objective-C

    - (LandmarkStoreType)getLandmarkStoreContextType:(int)identifier;

    Swift

    func getLandmarkStoreContextType(_ identifier: Int32) -> LandmarkStoreType

    Parameters

    identifier

    The ID of the landmark store context.

  • Get Map POIs landmark store.

    Declaration

    Objective-C

    - (int)getMapPoisLandmarkStoreId;

    Swift

    func getMapPoisLandmarkStoreId() -> Int32
  • Get landmark store id attached to map address database information.

    Declaration

    Objective-C

    - (int)getMapAddressLandmarkStoreId;

    Swift

    func getMapAddressLandmarkStoreId() -> Int32
  • Get landmark store id attached to map cities database information.

    Declaration

    Objective-C

    - (int)getMapCitiesLandmarkStoreId;

    Swift

    func getMapCitiesLandmarkStoreId() -> Int32
  • Returns all available landmark stores.

    Declaration

    Objective-C

    - (nonnull NSArray<LandmarkStoreContext *> *)getStores;

    Swift

    func getStores() -> [LandmarkStoreContext]