MapstedCoreApi
extension MapstedCoreApi : CoreInitCallback
extension MapstedCoreApi: CoreAssistPosInterface
extension MapstedCoreApi: CoreCalibrationInterface
extension MapstedCoreApi : CoreCategoriesInterface
extension MapstedCoreApi : CoreUtilitiesInterface
extension MapstedCoreApi : CoreLocationServicesInterface
extension MapstedCoreApi: CoreAssetsInterface
extension MapstedCoreApi: CoreAnalyticsInterface
extension MapstedCoreApi: CorePropertyServicesInterface
extension MapstedCoreApi : CoreClientAuthInterface
extension MapstedCoreApi : CoreGeofenceInterface
extension MapstedCoreApi: PositioningInterface
-
Declaration
Swift
public func onSuccess() -
Declaration
Swift
public func onStatusUpdate(update: EnumSdkUpdate) -
Declaration
Swift
public func onFailure(errorCode: EnumSdkError) -
Declaration
Swift
public func onStatusMessage(messageType: StatusMessageType)
-
Set a new location for current routing.
Declaration
Swift
public func onSelectedCurrentLocation(location: MNMercatorZone)Parameters
locationa location object.
-
Declaration
Swift
public func onSelectedCurrentLocationByAR(location: MNMercatorZone) -
Declaration
Swift
public func setZoneChangeConfirmation(zone: MNZone, expired: Bool) -
Select new floor
Declaration
Swift
public func setSelectedFloor(floorId: Int)Parameters
floorIdan identifier for the selected floor
-
Declaration
Swift
public func setSelectedNearbyEntity(propertyId: Int, buildingId: Int, floorId: Int, entityId: Int) -
Declaration
Swift
public func setSelectedNearbyEntity(nearbyEntity: MNEntityZone) -
Get list of nearby entities for a building
Declaration
Swift
public func getSelectNearbyEntityList(buildingId: Int, completion: @escaping (([Int]) -> Void))Parameters
buildingIdan identifier for the building of interest
-
Declaration
Swift
public func getSelectNearbyEntityZoneDistances(buildingId: Int, completion: @escaping (([EntityZoneDistance]) -> Void))
-
Declaration
Swift
public func isCalibration() -> Bool -
Declaration
Swift
public func startCalibration(position: MNTag) -> Bool -
Declaration
Swift
public func stopCalibration() -
Declaration
Swift
public func processData() -
Declaration
Swift
public func repostAnalyticsPackages() -
Declaration
Swift
public func fetchAnalyticsPackages() -> [[String : Any]] -
Declaration
Swift
public func clearCalibrationMode() -
Declaration
Swift
public func addDescription(description: String) -
Declaration
Swift
public func setGroundTruth(groundTruths: [MNPosition])
-
Call this function to get the category tree
Declaration
Swift
public func getGlobalCategoryTree() -> CMSCategoryTree?Return Value
The global category tree
-
Call this function to get the category tree for a property
Declaration
Swift
public func getPropertyCategoryTree(propertyId: Int) -> CMSCategoryTree?Return Value
A list of propertyInfos, 0 if no propertyInfo exists in system.
-
Call this function to get the category tree
Declaration
Swift
public func getGlobalCategories() -> CMSCategories?Return Value
A list of propertyInfos, 0 if no propertyInfo exists in system.
-
Declaration
Swift
public func findNearest(from entities: [MNSearchEntity], routingOptions: MNRouteOptions? = nil, completion: @escaping (MNSearchEntity?, Error?, Double) -> ()) -
Declaration
Swift
public func findNearest(from entityZones: [MNEntityZone], routingOptions: MNRouteOptions? = nil, completion: @escaping (MNEntityZone?, Error?, Double) -> ()) -
Declaration
Swift
public func getAppInformation() -> AppInformation
-
:nodoc
Declaration
Swift
public func getCurrentGpsPosition() -> MNGPSLoc? -
:nodoc
Declaration
Swift
public func isLocationServicesEnabled() -> (Bool, Bool) -
:nodoc
Declaration
Swift
public func getBLEStatus() -> (isEnabled: Bool, isSupported: Bool)
-
Declaration
Swift
public func startLocationService() -
:nodoc
Declaration
Swift
public func getImage(id: String) -> UIImage? -
:nodoc
Declaration
Swift
public func getImageFileUrl(id: String) -> URL? -
:nodoc
Declaration
Swift
public func fetchMarketingImagesAsync(urlMap: [String : String], propertyId: Int)
-
:nodoc
Declaration
Swift
public func getAppVersion() -> String -
Declaration
Swift
public func setAnalyticsEmail(email: String) -
Declaration
Swift
public func downloadPropertyData(propertyId: Int, progress: @escaping ((Float) -> Void), completed: @escaping (() -> Void)) -
Declaration
Swift
public func downloadPropertyCMSData(propertyId: Int, completed: @escaping (() -> Void)) -
Declaration
Swift
public func createRetryPolicy(override: Bool, retryNow: Bool, retryTimes: Int, id: Int? = nil, language: MNLanguageType? = nil, type: MNRequestType, completion: ((_ isSucceed: Bool) -> ())?) -
Declaration
Swift
public func isPropertyDownloaded(propertyId: Int) -> Bool -
Declaration
Swift
public func isDownloadingProperty(propertyId: Int) -> Bool -
Get the version of property
Declaration
Swift
public func getPropertyVersion(propertyId: Int) -> IntParameters
propertyIdProperty Id
Return Value
Return the version of property
-
Get the version of building
Declaration
Swift
public func getBuildingVersion(buildingId: Int) -> IntParameters
buildingIdBuilding Id
Return Value
Return the version of building
-
Declaration
Swift
public func propertyHasUpdate(propertyId: Int) -
Declaration
Swift
public func buildingHasUpdate(buildingId: Int) -
Gets property download progress.
Declaration
Swift
public func propertyDownloadProgress(propertyId: Int) -> Int?Parameters
propertyIdProperty id
Return Value
Return progress in percentage.
-
Attempts a login with the specified username (email) and password
Declaration
Swift
public func login(email: String, password: String) -> BoolParameters
emailThe email that serves as the login
passwordThe password to use
Return Value
True if the login was successful, and false otherwise.
MapstedCoreApi Extension Reference