forked from kennytm/iphone-private-frameworks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSBAccelerometerInterface.h
41 lines (34 loc) · 1.22 KB
/
SBAccelerometerInterface.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
33
34
35
36
37
38
39
40
/**
* This header is generated by class-dump-z 0.2-1.
* class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
*
* Source: (null)
*/
#import "SpringBoard-Structs.h"
#import <Foundation/NSObject.h>
#import <Availability2.h>
@class NSMutableArray, NSLock;
@interface SBAccelerometerInterface : NSObject {
NSLock* _lock;
double _samplingInterval;
double _topDisplayLastUpdateTime;
double _topDisplayInterval;
NSMutableArray* _clients;
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
BOOL _springBoardWantsEvents;
#endif
}
// inherited: +(void)initialize;
+(SBAccelerometerInterface*)sharedInstance;
// inherited: -(id)init;
// inherited: -(void)dealloc;
-(void)updateSettings;
-(void)setSpringBoardWantsEvents:(BOOL)events __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_3_2);
// set up a client to the mach port "port".
-(void)clientRequestedAccelerometerEvents:(mach_port_t)port
updateInterval:(NSTimeInterval)interval
xThreshold:(float)xThreshold yThreshold:(float)yThreshold zThreshold:(float)zThreshold
auditToken:(audit_token_t*)token;
-(void)_clientInvalidated:(id)invalidated;
-(void)accelerometerDataReceived:(double)received x:(float)x y:(float)y z:(float)z type:(unsigned)type;
@end