forked from wikimedia/wikipedia-iphone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCLController.h
More file actions
32 lines (25 loc) · 821 Bytes
/
CLController.h
File metadata and controls
32 lines (25 loc) · 821 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
//
// CLController.h
// Wikipedia Mobile
//
// Created by Andreas Lengyel on 2/16/10.
// Copyright 2010 Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol CLControllerDelegate <NSObject>
@required
- (void)locationUpdate:(CLLocation *)location;
- (void)locationError:(NSError *)error;
@end
@interface CLController : NSObject <CLLocationManagerDelegate> {
CLLocationManager *locationManager;
id delegate;
}
@property (nonatomic, retain) CLLocationManager *locationManager;
@property (nonatomic, assign) id <CLControllerDelegate> delegate;
- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation;
- (void)locationManager:(CLLocationManager *)manager
didFailWithError:(NSError *)error;
@end