PWMockLocationManagerConfiguration Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | PWMockLocationManagerConfiguration.h |
Overview
The JSON format for configurations should be as follows:
{ “name” : “Bistro to Elevator”, “description” : “Normal route…”, “updateInterval” : 2.0, “locations”: [ { “latitude”: 30.360012, “longitude”: -97.74255, “horizontalAccuracy”: 5.152377, “floorID”: 2, “updateInterval”: 1.2 }, ] }
name
The name of the configuration
@property (readonly) NSString *nameDeclared In
PWMockLocationManagerConfiguration.h
configurationDescription
The description of the configuration.
@property (readonly) NSString *configurationDescriptionDeclared In
PWMockLocationManagerConfiguration.h
locations
An array of PWMockLocationStep objects.
@property (readonly) NSArray *locationsDeclared In
PWMockLocationManagerConfiguration.h
defaultUpdateInterval
The default location update interval.
@property (readonly) NSTimeInterval defaultUpdateIntervalDeclared In
PWMockLocationManagerConfiguration.h
repeats
A BOOL value that determines whether location manager restarts the location updates after all location updates in the scene have played.
@property (readonly) BOOL repeatsDeclared In
PWMockLocationManagerConfiguration.h
+ unpack:
This method unpacks a configuration from a dictionary.
+ (instancetype)unpack:(NSDictionary *)dictionaryParameters
dictionary |
The dictionary that containers the configuration information. |
|---|
Declared In
PWMockLocationManagerConfiguration.h