Skip to content

CoreTelephony iOS 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/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h	2024-04-15 23:37:21
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h	2024-05-30 10:25:31
@@ -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/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CoreTelephonyDefines.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CoreTelephonyDefines.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CoreTelephonyDefines.h	2024-04-15 23:37:21
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CoreTelephonyDefines.h	2024-05-30 10:25:30
@@ -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
Clone this wiki locally