PWMSELocationManager Class Reference
Inherits from | NSObject |
---|---|
Conforms to | PWLocationManager |
Declared in | PWMSELocationManager.h |
Overview
The PWMSELocationManager
class defines the interface for configuring the delivery of Cisco Mobility Services Engine (MSE) location-related events to your application. You use an instance of this class to establish the parameters that determine when location events should be delivered and to start and stop the actual delivery of those events. This class conforms to the PWLocationManager
protocol.
venueGUID
The venue GUID associated with the location manager. (read-only)
@property (nonatomic, readonly) NSString *venueGUID
Declared In
PWMSELocationManager.h
floorIDMapping
The floor ID mapping dictionary used to define the mapping between the location provider floor ID and the Phunware floor ID. The dictionary format must adhere to the following format: @{CUSTOMER_FLOORID : PHUNWARE_FLOOR_ID}
.
@property (nonatomic, strong) NSDictionary *floorIDMapping
Declared In
PWMSELocationManager.h
updateInterval
The interval seconds between location update retrieval.
@property (nonatomic, assign) NSTimeInterval updateInterval
Discussion
The default value of this property is 2 seconds.
Declared In
PWMSELocationManager.h
defaultHorizontalAccuracy
The default horizontal accuracy radius to be used if none is present.
@property (nonatomic, assign) CLLocationDistance defaultHorizontalAccuracy
Discussion
The radius of uncertainty for the location, in meters.
Declared In
PWMSELocationManager.h
location
The latest indoor location received from the Phunware location service.
@property (nonatomic, readonly) PWIndoorLocation *location
Declared In
PWMSELocationManager.h
– initWithVenueGUID:location:
- (instancetype)initWithVenueGUID:(NSString *)venueGUID location:(CLLocationCoordinate2D)venueLocation
Parameters
venueGUID |
|
---|---|
venueLocation |
|
Return Value
The location manager object.
Discussion
The venue GUID will come from Phunware and is available in the PWBuilding
object. If the device is not within 5 kilometers of the venue location, location updates will fail.
Declared In
PWMSELocationManager.h
– initWithVenueGUID:
Initializes the location manager with the specified venue GUID.
- (instancetype)initWithVenueGUID:(NSString *)venueGUID
Parameters
venueGUID |
|
---|
Return Value
The location manager object.
Discussion
The venue GUID will come from Phunware and is available in the PWBuilding
object.
Declared In
PWMSELocationManager.h
– locationServicesAvailable
Returns a Boolean value indicating whether location services are enabled on the device.
- (BOOL)locationServicesAvailable
Declared In
PWMSELocationManager.h
– startUpdatingLocation
Starts the generation of updates that report the user’s current location.
- (void)startUpdatingLocation
Declared In
PWMSELocationManager.h
– stopUpdatingLocation
Stops the generation of updates that report the user’s current location.
- (void)stopUpdatingLocation
Declared In
PWMSELocationManager.h