MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
Instance Methods | Properties | List of all members
MPURITemplate Class Reference

#include <MPURITemplate.h>

Inheritance diagram for MPURITemplate:

Instance Methods

(nullable instancetype) - initWithTemplateString:
 
(void) - addParam:value:
 
(void) - addIntParam:value:
 
(void) - resetParams
 

Properties

NSString * templateURI
 
NSString * resultURI
 

Detailed Description

Generates an url based on an URI template. Template string must have format "prefix{param_1}infix{param_N}suffix", e.g.: "http://tiles.url.com/{floor}/{x}/{y}/{zoom}.png"

Method Documentation

◆ addIntParam:value:

- (void) addIntParam: (nonnull NSString *) name
value: (int) value 

Find the parameter placeholder {name} with given name and replace with given int value

◆ addParam:value:

- (void) addParam: (nonnull NSString *) name
value: (nonnull NSString *) value 

Find the parameter placeholder {name} with given name and replace with given string value

◆ initWithTemplateString:

- (nullable instancetype) initWithTemplateString: (nonnull NSString *) url

Initialization with template string. Must have format "prefix{param_1}infix{param_N}suffix", e.g.: "http://tiles.url.com/{floor}/{x}/{y}/{zoom}.png"

◆ resetParams

- (void) resetParams

Reset the url parameters.

Property Documentation

◆ resultURI

- (NSString*) resultURI
readnonatomicstrong

Get the resulting url string

◆ templateURI

- (NSString*) templateURI
readwritenonatomicstrong

Template string property. Must have format "prefix{param_1}infix{param_N}suffix", e.g.: "http://tiles.url.com/{floor}/{x}/{y}/{zoom}.png"