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 *name
Declared In
PWMockLocationManagerConfiguration.h
configurationDescription
The description of the configuration.
@property (readonly) NSString *configurationDescription
Declared In
PWMockLocationManagerConfiguration.h
locations
An array of PWMockLocationStep
objects.
@property (readonly) NSArray *locations
Declared In
PWMockLocationManagerConfiguration.h
defaultUpdateInterval
The default location update interval.
@property (readonly) NSTimeInterval defaultUpdateInterval
Declared 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 repeats
Declared In
PWMockLocationManagerConfiguration.h
+ unpack:
This method unpacks a configuration from a dictionary.
+ (instancetype)unpack:(NSDictionary *)dictionary
Parameters
dictionary |
The dictionary that containers the configuration information. |
---|
Declared In
PWMockLocationManagerConfiguration.h