Skip to content

CallKit iOS xcode26.0 b1

Alex Soto edited this page Jun 9, 2025 · 1 revision

#CallKit.framework

diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXCallUpdate.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXCallUpdate.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXCallUpdate.h	2025-04-19 05:14:54
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXCallUpdate.h	2025-05-28 01:27:13
@@ -16,7 +16,7 @@
 CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
 @interface CXCallUpdate : NSObject <NSCopying>
 
-/// Handle for the remote party (for an incoming call, the caller; for an outgoing call, the callee)
+/// Handle for the remote party (for an incoming call, the caller; for an outgoing call, the callee).
 @property (nonatomic, copy, nullable) CXHandle *remoteHandle;
 
 /// Override the computed caller name to a provider-defined value.
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXError.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXError.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXError.h	2025-04-19 05:14:54
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXError.h	2025-05-28 01:27:13
@@ -30,6 +30,7 @@
     CXErrorCodeIncomingCallErrorFilteredByBlockList = 4,
     CXErrorCodeIncomingCallErrorFilteredDuringRestrictedSharingMode = 5,
     CXErrorCodeIncomingCallErrorCallIsProtected = 6,
+    CXErrorCodeIncomingCallErrorFilteredBySensitiveParticipants = 7,
 } API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos);
 
 typedef NS_ERROR_ENUM(CXErrorDomainRequestTransaction, CXErrorCodeRequestTransactionError) {
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXProvider.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXProvider.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXProvider.h	2025-04-19 04:37:39
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXProvider.h	2025-05-23 06:13:03
@@ -24,7 +24,9 @@
 @class CXSetMutedCallAction;
 @class CXSetGroupCallAction;
 @class CXPlayDTMFCallAction;
-
+#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && !TARGET_OS_VISION
+@class CXSetTranslatingCallAction;
+#endif
 @class AVAudioSession;
 
 typedef NS_ENUM(NSInteger, CXCallEndedReason) {
@@ -62,7 +64,9 @@
 - (void)provider:(CXProvider *)provider performSetMutedCallAction:(CXSetMutedCallAction *)action;
 - (void)provider:(CXProvider *)provider performSetGroupCallAction:(CXSetGroupCallAction *)action;
 - (void)provider:(CXProvider *)provider performPlayDTMFCallAction:(CXPlayDTMFCallAction *)action;
-
+#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && !TARGET_OS_VISION
+- (void)provider:(CXProvider *)provider performSetTranslatingCallAction:(CXSetTranslatingCallAction *)action;
+#endif
 /// Called when an action was not performed in time and has been inherently failed. Depending on the action, this timeout may also force the call to end. An action that has already timed out should not be fulfilled or failed by the provider delegate
 - (void)provider:(CXProvider *)provider timedOutPerformingAction:(CXAction *)action;
 
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXProviderConfiguration.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXProviderConfiguration.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXProviderConfiguration.h	2025-04-19 05:14:54
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXProviderConfiguration.h	2025-05-28 01:27:13
@@ -28,6 +28,8 @@
 
 @property (nonatomic) BOOL supportsVideo; // Default NO
 
+@property (nonatomic) BOOL supportsAudioTranslation API_AVAILABLE(ios(26.0));
+
 // Numbers are of type CXHandleType
 @property (nonatomic, copy) NSSet<NSNumber *> *supportedHandleTypes;
 
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXSetTranslatingCallAction.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXSetTranslatingCallAction.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXSetTranslatingCallAction.h	1969-12-31 19:00:00
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXSetTranslatingCallAction.h	2025-05-28 01:27:13
@@ -0,0 +1,40 @@
+//
+//  CXSetTranslatingCallAction.h
+//  CallKit
+//
+//  Created by David Evans on 2/27/25.
+//  Copyright © 2025 Apple Inc. All rights reserved.
+//
+
+#import <CallKit/CXBase.h>
+#import <CallKit/CXCallAction.h>
+
+NS_SWIFT_SENDABLE
+typedef NS_ENUM(NSUInteger, CXTranslationEngine) {
+    CXTranslationEngineDefault,
+    CXTranslationEngineExternal,
+};
+
+NS_ASSUME_NONNULL_BEGIN
+/**
+  CXSetTranslatingCallAction is supported after call is connected.
+  System offered translation is only supported when using Apple's VoiceProcessor for call IO
+ */
+NS_SWIFT_SENDABLE
+CX_EXTERN
+API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macCatalyst, macos, tvos, watchos, visionos)
+@interface CXSetTranslatingCallAction : CXCallAction <NSSecureCoding>
+
+@property (nonatomic, readonly) BOOL isTranslating;
+@property (nonatomic, readonly, strong) NSLocale * localLocale;
+@property (nonatomic, readonly, strong) NSLocale * remoteLocale;
+
+- (instancetype)initWithCallUUID:(NSUUID *)uuid isTranslating:(BOOL)isTranslating localLocale:(NSLocale *)localLocale remoteLocale:(NSLocale *)remoteLocale NS_DESIGNATED_INITIALIZER;
+- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithCallUUID:(NSUUID *)callUUID NS_UNAVAILABLE;
+
+- (void)fulfillWithTranslationEngine:(CXTranslationEngine)translationEngine;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CallKit.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CallKit.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CallKit.h	2025-04-19 05:14:52
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CallKit.framework/Headers/CallKit.h	2025-05-28 01:27:11
@@ -21,6 +21,9 @@
 #import <CallKit/CXSetMutedCallAction.h>
 #import <CallKit/CXSetGroupCallAction.h>
 #import <CallKit/CXPlayDTMFCallAction.h>
+#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && !TARGET_OS_VISION
+#import <CallKit/CXSetTranslatingCallAction.h>
+#endif
 #import <CallKit/CXProvider.h>
 #import <CallKit/CXProviderConfiguration.h>
 #import <CallKit/CXCall.h>
Clone this wiki locally