MPCategoriesProvider
@interface MPCategoriesProvider : NSObject
A categories provider acts as a service for the location categories belonging to a specific MapsIndoors solution/dataset.
-
Categories provider delegate.
Declaration
Objective-C
@property (readwrite, atomic) id<MPCategoriesProviderDelegate> delegate;
Swift
weak var delegate: MPCategoriesProviderDelegate! { get set }
-
Get categories from the specified solution.
Declaration
Objective-C
- (void)getCategoriesAsync:(NSString *)solutionId locale:(NSString *)locale;
Swift
func getCategoriesAsync(_ solutionId: String!, locale: String!)
Parameters
solutionId
MapsIndoors solution id string
locale
Specifies which language to fetch categories in. Uses 2 character ISO 639-1 representation
-
Get Categories from this provider and provide a callback handler.
Declaration
Objective-C
- (void)getCategoriesAsync:(NSString *)solutionId locale:(NSString *)locale completionHandler:(mpCategoriesHandlerBlockType)completionHandler;
Swift
func getCategoriesAsync(_ solutionId: String!, locale: String!, completionHandler: mpCategoriesHandlerBlockType!)