-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSMLocationManager.h
More file actions
37 lines (32 loc) · 931 Bytes
/
SMLocationManager.h
File metadata and controls
37 lines (32 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// SMLocationManager.h
// TestMap
//
// Created by Ivan Pavlovic on 11/1/12.
// Copyright (C) 2013 City of Copenhagen. All rights reserved.
//
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
// If a copy of the MPL was not distributed with this file, You can obtain one at
// http://mozilla.org/MPL/2.0/.
//
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
/**
* \ingroup libs
* Background location manager
*/
@interface SMLocationManager : NSObject<CLLocationManagerDelegate>
{
CLLocationManager *locationManager;
CLLocation *lastValidLocation;
BOOL hasValidLocation;
BOOL locationServicesEnabled;
}
@property (readonly, nonatomic) BOOL hasValidLocation;
@property (readonly, nonatomic) CLLocation *lastValidLocation;
@property BOOL locationServicesEnabled;
+ (SMLocationManager *)instance;
- (void)start;
- (void)idle;
- (void)stop;
@end