Inherits from NSObject
Conforms to CLLocationManagerDelegate
Declared in QBLLocationDataSource.h

Overview

This class provide access to current location and related things

Tasks

Properties

currentLocation

@property (nonatomic, readonly) CLLocation *currentLocation
Discussion

Current location

Declared In

QBLLocationDataSource.h

locationAvailable

@property (nonatomic, readonly) BOOL locationAvailable
Discussion

Returns a Boolean value indicating whether location services are enabled on the device.

Declared In

QBLLocationDataSource.h

locationManager

@property (nonatomic, readonly) CLLocationManager *locationManager
Discussion

Location manager

Declared In

QBLLocationDataSource.h

Class Methods

instance

+ (QBLLocationDataSource *)instance
Discussion

Obtain current QBLLocationDataSource instance

Return Value

QBLLocationDataSource initialized

Declared In

QBLLocationDataSource.h

Instance Methods

setActionForLocationUpdate:target:

- (void)setActionForLocationUpdate:(SEL)action target:(id)target
Discussion

Set action & target for track location updates

Parameters

action

A selector which will be called when location has been changed

target

An object which will receive change location updates

Declared In

QBLLocationDataSource.h

setDesiredAccuracy:

- (void)setDesiredAccuracy:(CLLocationAccuracy)desiredAccuracy
Discussion

Set desired accuracy of the location data.

Parameters

desiredAccuracy

Desired accuracy of the location data

Declared In

QBLLocationDataSource.h

setDistanceFilter:

- (void)setDistanceFilter:(CLLocationDistance)distanceFilter
Discussion

Set minimum distance (measured in meters) a device must move laterally before an update event is generated.

Parameters

distanceFilter

Minimum distance (measured in meters) a device must move laterally before an update event is generated.

Declared In

QBLLocationDataSource.h