forked from tradle/react-native-local-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUIDevice+PasscodeStatus.h
More file actions
33 lines (27 loc) · 878 Bytes
/
UIDevice+PasscodeStatus.h
File metadata and controls
33 lines (27 loc) · 878 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
//
// UIDevice+PasscodeStatus.h
// PasscodeStatus
//
// Created by Liam Nichols on 02/09/2014.
// Copyright (c) 2014 Liam Nichols. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSUInteger, LNPasscodeStatus){
/* The passcode status was unknown */
LNPasscodeStatusUnknown = 0,
/* The passcode is enabled */
LNPasscodeStatusEnabled = 1,
/* The passcode is disabled */
LNPasscodeStatusDisabled = 2
};
@interface UIDevice (PasscodeStatus)
/**
* Determines if the device supports the `passcodeStatus` check. Passcode check is only supported on iOS 8.
*/
@property (readonly) BOOL passcodeStatusSupported;
/**
* Checks and returns the devices current passcode status.
* If `passcodeStatusSupported` returns NO then `LNPasscodeStatusUnknown` will be returned.
*/
@property (readonly) LNPasscodeStatus passcodeStatus;
@end