Skip to content

DeviceCheck tvOS xcode9 beta1

Vincent Dondain edited this page Jun 5, 2017 · 2 revisions

#DeviceCheck.framework

diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/DeviceCheck.framework/Headers/DCDevice.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/DeviceCheck.framework/Headers/DCDevice.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/DeviceCheck.framework/Headers/DCDevice.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/DeviceCheck.framework/Headers/DCDevice.h	2017-05-19 01:45:47.000000000 -0400
@@ -0,0 +1,33 @@
+//
+//  DCDevice.h
+//  DeviceCheck
+//
+//  Copyright © 2017 Apple Inc. All rights reserved.
+//
+
+#import <DeviceCheck/DeviceCheck.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+API_AVAILABLE(ios(11.0), tvos(11.0)) API_UNAVAILABLE(watchos, macos)
+@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
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/DeviceCheck.framework/Headers/DCError.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/DeviceCheck.framework/Headers/DCError.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/DeviceCheck.framework/Headers/DCError.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/DeviceCheck.framework/Headers/DCError.h	2017-05-19 01:45:47.000000000 -0400
@@ -0,0 +1,20 @@
+//
+//  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), tvos(11.0)) API_UNAVAILABLE(watchos, macos);
+
+typedef NS_ERROR_ENUM(DCErrorDomain, DCError) {
+    DCErrorUnknownSystemFailure,
+    DCErrorFeatureUnsupported
+} API_AVAILABLE(ios(11.0), tvos(11.0)) API_UNAVAILABLE(watchos, macos);
+
+NS_ASSUME_NONNULL_END
+
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/DeviceCheck.framework/Headers/DeviceCheck.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/DeviceCheck.framework/Headers/DeviceCheck.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/DeviceCheck.framework/Headers/DeviceCheck.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/DeviceCheck.framework/Headers/DeviceCheck.h	2017-05-19 01:45:47.000000000 -0400
@@ -0,0 +1,10 @@
+//
+//  DeviceCheck.h
+//  DeviceCheck
+//
+//  Copyright © 2017 Apple Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <DeviceCheck/DCDevice.h>
+#import <DeviceCheck/DCError.h>
Clone this wiki locally