-
Notifications
You must be signed in to change notification settings - Fork 0
/
DeviceCheck.framework.h
66 lines (51 loc) · 1.58 KB
/
DeviceCheck.framework.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// ========== DeviceCheck.framework/Headers/DeviceCheck.h
//
// DeviceCheck.h
// DeviceCheck
//
// Copyright © 2017 Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <DeviceCheck/DCDevice.h>
#import <DeviceCheck/DCError.h>
// ========== DeviceCheck.framework/Headers/DCError.h
//
// DCError.h
// DeviceCheck
//
// Copyright © 2017 Apple Inc. All rights reserved.
//
#import <DeviceCheck/DeviceCheck.h>
NS_ASSUME_NONNULL_BEGIN
extern NSErrorDomain const DCErrorDomain API_AVAILABLE(ios(11.0), macos(10.15), tvos(11.0)) API_UNAVAILABLE(watchos);
typedef NS_ERROR_ENUM(DCErrorDomain, DCError) {
DCErrorUnknownSystemFailure,
DCErrorFeatureUnsupported
} API_AVAILABLE(ios(11.0), macos(10.15), tvos(11.0)) API_UNAVAILABLE(watchos);
NS_ASSUME_NONNULL_END
// ========== DeviceCheck.framework/Headers/DCDevice.h
//
// DCDevice.h
// DeviceCheck
//
// Copyright © 2017 Apple Inc. All rights reserved.
//
#import <DeviceCheck/DeviceCheck.h>
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(11.0), macos(10.15), tvos(11.0)) API_UNAVAILABLE(watchos)
@interface DCDevice : NSObject
/**
The current device.
*/
@property (class, readonly) DCDevice *currentDevice;
/**
Check if this API is supported on the current device.
*/
@property (getter=isSupported, readonly) BOOL supported;
/**
Generate a new device token that can be used to get/set the persistent bits for this device.
This call generates a new value every time.
*/
- (void)generateTokenWithCompletionHandler:(void(^)(NSData * _Nullable token, NSError * _Nullable error))completion;
@end
NS_ASSUME_NONNULL_END