-
Notifications
You must be signed in to change notification settings - Fork 17
/
Beacon.h
32 lines (27 loc) · 861 Bytes
/
Beacon.h
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
//
// Beacon.h
// PinchMedia
//
// Created by Jesse Rohland on 4/6/08.
// Copyright 2008 PinchMedia. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
@interface Beacon : NSObject <CLLocationManagerDelegate> {
NSString *applicationCode;
BOOL beaconStarted;
BOOL uploading;
BOOL useCoreLocation;
CLLocationManager *locationManager;
NSURLConnection *connection;
NSMutableData *receivedData;
}
+ (id)initAndStartBeaconWithApplicationCode:(NSString *)theApplicationCode useCoreLocation:(BOOL)coreLocation;
+ (id)shared;
- (void)startSubBeaconWithName:(NSString *)beaconName timeSession:(BOOL)trackSession;
- (void)endSubBeaconWithName:(NSString *)beaconName;
- (void)startBeacon;
- (void)endBeacon;
- (void)setBeaconLocation:(CLLocation *)newLocation;
- (NSDictionary *)getCurrentRunningBeacon;
@end