|
MapsIndoors iOS SDK V3
|
#include <MPURITemplate.h>
Instance Methods | |
| (nullable instancetype) | - initWithTemplateString: |
| (void) | - addParam:value: |
| (void) | - addIntParam:value: |
| (void) | - resetParams |
Properties | |
| NSString * | templateURI |
| NSString * | resultURI |
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"
| - (void) addIntParam: | (nonnull NSString *) | name | |
| value: | (int) | value |
Find the parameter placeholder {name} with given name and replace with given int value
| - (void) addParam: | (nonnull NSString *) | name | |
| value: | (nonnull NSString *) | value |
Find the parameter placeholder {name} with given name and replace with given string value
| - (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"
| - (void) resetParams |
Reset the url parameters.
|
readnonatomicstrong |
Get the resulting url string
|
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"