-
Notifications
You must be signed in to change notification settings - Fork 507
CoreTelephony macOS xcode16.0 b1
Rolf Bjarne Kvinge edited this page Jul 11, 2024
·
3 revisions
#CoreTelephony.framework https://github.com/xamarin/xamarin-macios/pull/20863
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularData.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularData.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularData.h 1970-01-01 01:00:00
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularData.h 2024-05-30 02:17:44
@@ -0,0 +1,39 @@
+//
+// CTCellularData.h
+// CFTelephony
+//
+// Copyright (c) 2015 Apple Inc. All rights reserved.
+//
+
+#ifdef __OBJC__
+
+#import <CoreTelephony/CoreTelephonyDefines.h>
+#import <Foundation/Foundation.h>
+
+typedef NS_ENUM(NSUInteger, CTCellularDataRestrictedState) {
+ kCTCellularDataRestrictedStateUnknown,
+ kCTCellularDataRestricted,
+ kCTCellularDataNotRestricted
+};
+
+typedef void (^CellularDataRestrictionDidUpdateNotifier)(CTCellularDataRestrictedState);
+
+NS_ASSUME_NONNULL_BEGIN
+
+CORETELEPHONY_CLASS_AVAILABLE(9_0)
+@interface CTCellularData : NSObject
+/*
+ * cellularDataRestrictionDidUpdateNotifier
+ *
+ * A block that will be dispatched on the default priority global dispatch queue the first time
+ * app sets the callback handler and everytime there is a change in cellular data allowed policy
+ * for the app.
+ */
+
+@property (copy, nullable) CellularDataRestrictionDidUpdateNotifier cellularDataRestrictionDidUpdateNotifier API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(macos);
+@property (nonatomic, readonly) CTCellularDataRestrictedState restrictedState API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(macos);
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif // __OBJC__
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProvisioning.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProvisioning.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProvisioning.h 1970-01-01 01:00:00
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProvisioning.h 2024-05-30 02:17:44
@@ -0,0 +1,28 @@
+//
+// CTCellularPlanProvisioning.h
+// CoreTelephony
+//
+// Copyright (c) 2018 Apple Inc. All rights reserved.
+
+#ifdef __OBJC__
+
+#import <Foundation/Foundation.h>
+#import <CoreTelephony/CoreTelephonyDefines.h>
+#import <CoreTelephony/CTCellularPlanProvisioningRequest.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+CORETELEPHONY_CLASS_AVAILABLE(12_0)
+@interface CTCellularPlanProvisioning : NSObject
+
+@property (nonatomic, readonly) BOOL supportsEmbeddedSIM __API_AVAILABLE(ios(16.0));
+
+- (BOOL)supportsCellularPlan __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_12_0);
+
+- (void)addPlanWith:(CTCellularPlanProvisioningRequest *)request completionHandler:(void (^)(CTCellularPlanProvisioningAddPlanResult result))completionHandler __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_12_0) API_UNAVAILABLE(macos, tvos);
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif // __OBJC__
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProvisioningRequest.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProvisioningRequest.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProvisioningRequest.h 1970-01-01 01:00:00
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProvisioningRequest.h 2024-05-30 02:17:44
@@ -0,0 +1,36 @@
+//
+// CTCellularPlanProvisioningRequest.h
+// CFTelephony
+//
+// Copyright (c) 2018 Apple Inc. All rights reserved.
+//
+
+#ifdef __OBJC__
+
+#import <Foundation/Foundation.h>
+#import <CoreTelephony/CoreTelephonyDefines.h>
+
+API_AVAILABLE_BEGIN(ios(12.0), watchos(5.0))
+
+typedef NS_ENUM(NSUInteger, CTCellularPlanProvisioningAddPlanResult) {
+ CTCellularPlanProvisioningAddPlanResultUnknown,
+ CTCellularPlanProvisioningAddPlanResultFail,
+ CTCellularPlanProvisioningAddPlanResultSuccess,
+ CTCellularPlanProvisioningAddPlanResultCancel API_AVAILABLE(ios(17.0))
+};
+
+CORETELEPHONY_EXTERN_CLASS
+API_UNAVAILABLE(macos, tvos)
+@interface CTCellularPlanProvisioningRequest : NSObject<NSSecureCoding>
+
+@property (nonatomic, strong, nonnull) NSString *address API_UNAVAILABLE(tvos, macosx);
+@property (nonatomic, strong, nullable) NSString *matchingID API_UNAVAILABLE(tvos, macosx);
+@property (nonatomic, strong, nullable) NSString *OID API_UNAVAILABLE(tvos, macosx);
+@property (nonatomic, strong, nullable) NSString *confirmationCode API_UNAVAILABLE(tvos, macosx);
+@property (nonatomic, strong, nullable) NSString *ICCID API_UNAVAILABLE(tvos, macosx);
+@property (nonatomic, strong, nullable) NSString *EID API_UNAVAILABLE(tvos, macosx);
+
+@end
+API_AVAILABLE_END
+
+#endif // __OBJC__
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h 2024-04-16 04:29:57
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h 2024-05-30 02:17:44
@@ -39,15 +39,34 @@
* carrierToken
*
* Description:
+ * This method is only available to carrier apps with suitable entitlements.
* A data blob containing authorization information about the subscriber.
- * This API is deprecated without replacement. Starting in iOS 11.3, this API returns nil.
*/
@property (nonatomic, readonly, retain, nullable) NSData* carrierToken
-API_UNAVAILABLE(macos, watchos, tvos)
-API_DEPRECATED("Deprecated; returns nil starting in iOS 11.3.", ios(7.0, 11.0))
+API_UNAVAILABLE(macos, tvos, visionos)
+API_AVAILABLE(ios(7.0), watchos(12.0))
;
/*
+ * refreshCarrierToken
+ *
+ * Description:
+ * This method is only available to carrier apps with suitable entitlements.
+ * If the carrier token does exist but is declined by the server, then the token
+ * may be updated using this method. As a general rule, retrieve the carrierToken first.
+ * A refresh should only be done when that information is known to be incorrect.
+ *
+ * If the refresh will be performed, this function will return YES and the
+ * subscriberTokenRefreshed(_:) delegate method will be called.
+ * If the request to refresh fails due to invalid argument (bad carrier descriptors or invalid service descriptor)
+ * or subscriber does not support the authentication action, this function will return NO.
+ */
+- (BOOL)refreshCarrierToken
+API_UNAVAILABLE(macos, tvos, visionos)
+API_AVAILABLE(ios(6.0),watchos(12.0))
+;
+
+/*
* identifier
*
* Description:
@@ -61,6 +80,18 @@
API_UNAVAILABLE(macos, tvos)
API_AVAILABLE(ios(12.1))
API_UNAVAILABLE(macCatalyst, watchos)
+;
+
+/*
+ * SIMInserted
+ *
+ * Description
+ * Returns whether or not the SIM matching the Info.plist carrier information (MCC / MNC / GIDs) is currently inserted in the associated descriptor
+*/
+@property(readonly, getter=isSIMInserted) BOOL SIMInserted
+API_UNAVAILABLE(macos, tvos, visionos)
+API_AVAILABLE(ios(18.0), watchos(11.0))
+API_UNAVAILABLE(macCatalyst)
;
@property (nonatomic, weak) id<CTSubscriberDelegate> delegate
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CoreTelephonyDefines.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CoreTelephonyDefines.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CoreTelephonyDefines.h 2024-04-16 04:29:57
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CoreTelephonyDefines.h 2024-05-30 02:17:44
@@ -10,6 +10,9 @@
#ifndef __CORETELEPHONY_DEFINES_H__
#define __CORETELEPHONY_DEFINES_H__
+// For exporting C++-only types.
+#define CORETELEPHONY_CPP_EXTERN __attribute__((visibility ("default")))
+
#ifdef __cplusplus
#define CORETELEPHONY_EXTERN extern "C" __attribute__((visibility ("default")))
#else
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status