MPLocationDisplayRuleset
@interface MPLocationDisplayRuleset
This class holds a ruleset that defines how and when to show different location markers.
-
The base url to the bundle containing the icons for this ruleset. Set the value to your bundle identifier.
Declaration
Objective-C
@property (assign, readwrite, atomic) NSString *iconBaseUrl;
Swift
var iconBaseUrl: String! { get set }
-
Array of display rules.
Declaration
Objective-C
@property (assign, readwrite, atomic) NSMutableArray *displayRules;
Swift
var displayRules: NSMutableArray! { get set }
-
Method for retrieving the first occurence of a rule based on a set of rule names.
Declaration
Objective-C
- (MPLocationDisplayRule *)getRule:(NSArray *)ruleNames;
Swift
func getRule(_ ruleNames: [Any]!) -> MPLocationDisplayRule!
-
Get the first occurence of a rule based on a rule name.
Declaration
Objective-C
- (MPLocationDisplayRule *)firstOccur:(NSString *)ruleName;
Swift
func firstOccur(_ ruleName: String!) -> MPLocationDisplayRule!
-
Undocumented
Declaration
Objective-C
@interface MPLocationDisplayRuleset
-
Method for retrieving the first occurence of a rules icon based on a set of rule names.
Declaration
Objective-C
- (UIImage *)getIcon:(NSArray *)ruleNames;
Swift
func getIcon(_ ruleNames: [Any]!) -> UIImage!
-
Fetch all the ruleset icons and store them into memory.
Declaration
Objective-C
- (void)fetchIcons;
Swift
func fetchIcons()