MapsIndoors
Undocumented
-
Provides your Solution Id to the MapsIndoors SDK for iOS. This key is generated for your solution. - returns: YES if the Solution Id was successfully provided
Declaration
Objective-C
+ (BOOL)provideSolutionId:(NSString *)solutionId;
Swift
class func provideSolutionId(_ solutionId: String!) -> Bool
Return Value
YES if the Solution Id was successfully provided
-
Gets the current MapsIndoors solution id. - parameter: The solution id as a string value.
Declaration
Objective-C
+ (NSString *)getSolutionId;
Swift
class func getSolutionId() -> String!
Parameters
The
solution id as a string value.
-
Sets the language for the content provided by MapsIndoors. - parameter: language The language for which the content should be fetched. Uses the two-letter language code ISO 639-1.
Declaration
Objective-C
+ (void)setLanguage:(NSString *)languageCode;
Swift
class func setLanguage(_ languageCode: String!)
Parameters
language
The language for which the content should be fetched. Uses the two-letter language code ISO 639-1.
-
Gets the current language for the content provided by MapsIndoors. @returns The language for which the content should be fetched. Uses the two-letter language code ISO 639-1.
Declaration
Objective-C
+ (NSString *)getLanguage;
Swift
class func getLanguage() -> String!
-
Fetch all neccesary content to be able to run MapsIndoors in offline environments - parameter: completionHandler Callback function that fires when content has been fetched or if this process resolves in an error. Note: Does not automtically retry fetch.
Declaration
Objective-C
+ (void)fetchDataForOfflineUse:(mpOfflineDataHandlerBlockType)completionHandler;
Swift
class func fetchData(forOfflineUse completionHandler: mpOfflineDataHandlerBlockType!)
Parameters
completionHandler
Callback function that fires when content has been fetched or if this process resolves in an error. Note: Does not automtically retry fetch.
-
Sets the offline mode for the content provided by MapsIndoors. NB: This forces the implementation to be offline, even if there is no data available offline. - parameter: offlineMode The offline mode. Can be true/offline false/offline.
Declaration
Objective-C
+ (void)setOfflineMode:(BOOL)offline;
Swift
class func setOfflineMode(_ offline: Bool)
Parameters
offlineMode
The offline mode. Can be true/offline false/offline.
-
Gets the current offline mode.
Declaration
Objective-C
+ (BOOL)getOfflineMode;
Swift
class func getOfflineMode() -> Bool