-
Notifications
You must be signed in to change notification settings - Fork 140
/
PermissionsManager.h
35 lines (26 loc) · 1.13 KB
/
PermissionsManager.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
//
// PermissionsManager.h
// Scroll Reverser
//
// Created by Nicholas Moore on 21/11/2019.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
extern NSString *const PermissionsManagerKeyAccessibilityEnabled;
extern NSString *const PermissionsManagerKeyInputMonitoringEnabled;
extern NSString *const PermissionsManagerKeyHasAllRequiredPermissions;
@interface PermissionsManager : NSObject
- (void)refresh;
@property (readonly) BOOL hasAllRequiredPermissions;
- (void)requestAccessibilityPermission;
- (void)openAccessibilityPrefs;
@property (readonly, getter=isAccessibilityRequired) BOOL accessibilityRequired;
@property (readonly, getter=isAccessibilityEnabled) BOOL accessibilityEnabled;
@property (readonly, getter=isAccessibilityRequested) BOOL accessibilityRequested;
- (void)requestInputMonitoringPermission;
- (void)openInputMonitoringPrefs;
@property (readonly, getter=isInputMonitoringRequired) BOOL inputMonitoringRequired;
@property (readonly, getter=isInputMonitoringEnabled) BOOL inputMonitoringEnabled;
@property (readonly, getter=isInputMonitoringRequested) BOOL inputMonitoringRequested;
@end
NS_ASSUME_NONNULL_END