peachsim 0.1.2278 → 0.1.2298

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/cli/commands/platform.ts +28 -8
  2. package/cli/commands/shell-url.ts +13 -4
  3. package/cli/outbound-endpoints.ts +2 -0
  4. package/dist-lib/agent-daemon-client.cjs +1 -1
  5. package/dist-lib/agent-events.cjs +1 -1
  6. package/dist-lib/attached-projects.cjs +1 -1
  7. package/dist-lib/auth/shared-session.cjs +1 -1
  8. package/dist-lib/backend-origin.cjs +1 -1
  9. package/dist-lib/beta.cjs +1 -1
  10. package/dist-lib/beta.mjs +1 -1
  11. package/dist-lib/bridge-constants.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.mjs +1 -1
  14. package/dist-lib/bridge-contract.cjs +1 -1
  15. package/dist-lib/bridge-contract.mjs +1 -1
  16. package/dist-lib/bundle-channel.cjs +3691 -3537
  17. package/dist-lib/capture-contract.cjs +1 -1
  18. package/dist-lib/capture-contract.mjs +1 -1
  19. package/dist-lib/cloud-contract.cjs +1 -1
  20. package/dist-lib/cloud-contract.mjs +1 -1
  21. package/dist-lib/cloud-test-args.cjs +1 -1
  22. package/dist-lib/cloud-test-args.mjs +1 -1
  23. package/dist-lib/cloud.cjs +1 -1
  24. package/dist-lib/cloud.mjs +1 -1
  25. package/dist-lib/config.cjs +1 -1
  26. package/dist-lib/config.mjs +1 -1
  27. package/dist-lib/detox/index.cjs +2 -2
  28. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  29. package/dist-lib/expo-swift-bundle.cjs +1995 -1900
  30. package/dist-lib/expo-swift-metadata.cjs +1 -1
  31. package/dist-lib/expo-swift-metadata.mjs +1 -1
  32. package/dist-lib/home-paths.cjs +1 -1
  33. package/dist-lib/host/bridge-host.cjs +2875 -2721
  34. package/dist-lib/host/fetch-proxy-handler.cjs +19 -7
  35. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  36. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  37. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  38. package/dist-lib/host/websocket-proxy.cjs +1 -1
  39. package/dist-lib/index.cjs +55 -21
  40. package/dist-lib/jump-to-source-babel.cjs +1 -1
  41. package/dist-lib/jump-to-source-native.cjs +1 -1
  42. package/dist-lib/kotlin-host.cjs +14 -2
  43. package/dist-lib/menu.cjs +1 -1
  44. package/dist-lib/menu.mjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  47. package/dist-lib/metro-production-bundle.cjs +1 -1
  48. package/dist-lib/metro-production-bundle.mjs +1 -1
  49. package/dist-lib/metro.cjs +55 -21
  50. package/dist-lib/native-app-identity-project.cjs +13 -5
  51. package/dist-lib/native-app-identity-project.mjs +13 -5
  52. package/dist-lib/native-app-identity.cjs +11 -3
  53. package/dist-lib/native-app-identity.mjs +11 -3
  54. package/dist-lib/native-firebase-metadata.cjs +1 -1
  55. package/dist-lib/native-firebase-metadata.mjs +1 -1
  56. package/dist-lib/pdfium-raster.cjs +1 -1
  57. package/dist-lib/pdfium-raster.mjs +1 -1
  58. package/dist-lib/plist.cjs +1 -1
  59. package/dist-lib/plist.mjs +1 -1
  60. package/dist-lib/profiles.cjs +1 -1
  61. package/dist-lib/public-brand.cjs +1 -1
  62. package/dist-lib/public-origins-lib-esm.json +26 -25
  63. package/dist-lib/public-origins-lib.json +68 -58
  64. package/dist-lib/react-native-host-modules.cjs +1 -1
  65. package/dist-lib/react-native-host-modules.mjs +1 -1
  66. package/dist-lib/reap-browser.cjs +1 -1
  67. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  68. package/dist-lib/sdk.cjs +1 -1
  69. package/dist-lib/sdk.mjs +1 -1
  70. package/dist-lib/skills.cjs +3579 -3392
  71. package/dist-lib/swift-compile.cjs +2 -2
  72. package/dist-lib/swift-compile.mjs +2 -2
  73. package/dist-lib/swift-package.cjs +1 -1
  74. package/dist-lib/swift-package.mjs +1 -1
  75. package/dist-lib/swift-submit.cjs +1 -1
  76. package/dist-lib/swift-submit.mjs +1 -1
  77. package/dist-lib/swift-toolchain.cjs +1 -1
  78. package/dist-lib/swift.cjs +1 -1
  79. package/dist-lib/vite-swift.cjs +467 -447
  80. package/dist-lib/vite.cjs +19 -7
  81. package/dist-lib/worklet-executable.cjs +421 -118
  82. package/dist-lib/worklet-executable.mjs +427 -113
  83. package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +3 -1
  84. package/dist-types/packages/peach-engine/src/engine/node.d.ts +4 -3
  85. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +13 -9
  86. package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +14 -15
  87. package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +17 -22
  88. package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +0 -1
  89. package/dist-types/packages/peach-engine/src/kernel/kernel.d.ts +69 -0
  90. package/dist-types/packages/peach-engine/src/kernel/worklet-kernel.d.ts +28 -0
  91. package/dist-types/packages/peach-engine/src/platform/personality.d.ts +1 -1
  92. package/dist-types/packages/peach-engine/src/render-worker/app-load.d.ts +4 -0
  93. package/dist-types/packages/peach-engine/src/render-worker/graph-linked-value.d.ts +3 -3
  94. package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +3 -3
  95. package/dist-types/packages/peach-engine/src/render-worker/worklet-serialize.d.ts +5 -0
  96. package/dist-types/packages/peach-engine/src/render-worker/worklet-wire.d.ts +2 -0
  97. package/dist-types/packages/peach-engine/src/settings/device-spec-bus.d.ts +5 -0
  98. package/kotlin/README.md +1 -1
  99. package/kotlin/sdk.tar.gz +0 -0
  100. package/kotlin/toolchain.json +5 -1
  101. package/package.json +1 -1
  102. package/runtime-companion.json +1 -1
  103. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXAction.h +34 -0
  104. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXAnswerCallAction.h +20 -0
  105. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXBase.h +20 -0
  106. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCall.h +28 -0
  107. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallAction.h +23 -0
  108. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallController.h +53 -0
  109. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallDirectory.h +16 -0
  110. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallDirectoryExtensionContext.h +86 -0
  111. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallDirectoryManager.h +29 -0
  112. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallDirectoryProvider.h +21 -0
  113. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallObserver.h +34 -0
  114. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallUpdate.h +43 -0
  115. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXEndCallAction.h +20 -0
  116. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXError.h +66 -0
  117. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXHandle.h +31 -0
  118. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXPlayDTMFCallAction.h +33 -0
  119. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXProvider.h +127 -0
  120. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXProviderConfiguration.h +42 -0
  121. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXSetGroupCallAction.h +27 -0
  122. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXSetHeldCallAction.h +23 -0
  123. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXSetMutedCallAction.h +23 -0
  124. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXSetTranslatingCallAction.h +40 -0
  125. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXStartCallAction.h +33 -0
  126. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXTransaction.h +34 -0
  127. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CallKit.apinotes +36 -0
  128. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CallKit.h +35 -0
  129. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Modules/module.modulemap +6 -0
  130. package/sdk/ios/System/Library/Frameworks/React.framework/Headers/React.h +14 -0
  131. package/src/expo-autolinking.ts +1 -1
  132. package/src/expo-native-prebuilt.ts +24 -0
  133. package/src/expo-native-workspace.ts +51 -5
  134. package/src/expo-swift-host.ts +5 -5
  135. package/src/kotlin-toolchain.ts +16 -1
  136. package/src/kotlinSdkContract.ts +2 -1
  137. package/src/nitro-adapter.lock.json +284 -284
  138. package/src/nitro-compile.ts +69 -4
  139. package/src/nitro-superset.lock.json +4 -4
  140. package/src/one-sdk/source.ts +2 -1
  141. package/src/prepared-native-inventory.ts +8 -2
  142. package/src/react-native-autolinking.ts +28 -9
  143. package/src/swift-compiler-digest.ts +8 -1
  144. package/src/swift-coverage/xcode-packages.ts +2 -1
  145. package/src/swift-distribution.lock.json +11 -11
  146. package/src/swift-helper.ts +38 -0
  147. package/src/swift-host.ts +3 -1
  148. package/src/swift-pdf-raster.ts +7 -33
  149. package/src/turbo-bundle.ts +14 -6
  150. package/src/turbo-codegen-intake.ts +3 -2
  151. package/src/turbo-compile.ts +12 -1
  152. package/src/turbo-runtime.lock.json +22 -22
  153. package/src/turbo-source.ts +2 -4
  154. package/src/worklet-executable.ts +4 -1
  155. package/src/worklet-kernel.ts +370 -0
  156. package/src/worklets-babel.ts +10 -0
  157. package/src/xcode-target-members.ts +17 -7
@@ -0,0 +1,23 @@
1
+ //
2
+ // CXCallAction.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2015 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXAction.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
13
+ @interface CXCallAction : CXAction
14
+
15
+ @property (nonatomic, readonly, copy) NSUUID *callUUID;
16
+
17
+ - (instancetype)initWithCallUUID:(NSUUID *)callUUID NS_DESIGNATED_INITIALIZER;
18
+ - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
19
+ - (instancetype)init NS_UNAVAILABLE;
20
+
21
+ @end
22
+
23
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,53 @@
1
+ //
2
+ // CXCallController.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2015 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @class CXAction;
13
+ @class CXCallObserver;
14
+ @class CXTransaction;
15
+
16
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
17
+ @interface CXCallController : NSObject
18
+
19
+ /// Initialize call controller with a private, serial queue.
20
+ - (instancetype)init;
21
+
22
+ /// Initialize call controller with specified queue, which is used for calling completion blocks.
23
+ - (instancetype)initWithQueue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER;
24
+
25
+ @property (nonatomic, readonly, strong) CXCallObserver *callObserver;
26
+
27
+ /// Request a transaction to be performed by the in-app provider.
28
+ ///
29
+ /// If the completion block is called with a nil error, then the transaction will be passed to the CXProvider's -provider:executeTransaction: delegate callback.
30
+ /// A non-nil error indicates that the requested transaction could not be executed.
31
+ ///
32
+ /// Completion block is performed on the queue supplied to designated initializer.
33
+ - (void)requestTransaction:(CXTransaction *)transaction completion:(void (^)(NSError *_Nullable error))completion;
34
+
35
+ /// Request a transaction containing the specified actions to be performed by the in-app provider.
36
+ ///
37
+ /// If the completion block is called with a nil error, then the transaction will be passed to the CXProvider's -provider:executeTransaction: delegate callback.
38
+ /// A non-nil error indicates that the requested transaction could not be executed.
39
+ ///
40
+ /// Completion block is performed on the queue supplied to designated initializer.
41
+ - (void)requestTransactionWithActions:(NSArray<CXAction *> *)actions completion:(void (^)(NSError *_Nullable error))completion API_AVAILABLE(ios(11.0), macCatalyst(13.0), watchos(9.0));
42
+
43
+ /// Request a transaction containing the specified action to be performed by the in-app provider.
44
+ ///
45
+ /// If the completion block is called with a nil error, then the transaction will be passed to the CXProvider's -provider:executeTransaction: delegate callback.
46
+ /// A non-nil error indicates that the requested transaction could not be executed.
47
+ ///
48
+ /// Completion block is performed on the queue supplied to designated initializer.
49
+ - (void)requestTransactionWithAction:(CXAction *)action completion:(void (^)(NSError *_Nullable error))completion API_AVAILABLE(ios(11.0), macCatalyst(13.0), watchos(9.0));
50
+
51
+ @end
52
+
53
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,16 @@
1
+ //
2
+ // CXCallDirectory.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2016 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ typedef int64_t CXCallDirectoryPhoneNumber;
13
+
14
+ static const CXCallDirectoryPhoneNumber CXCallDirectoryPhoneNumberMax = (INT64_MAX - 1);
15
+
16
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,86 @@
1
+ //
2
+ // CXCallDirectoryExtensionContext.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2016 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+ #import <CallKit/CXCallDirectory.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @class CXCallDirectoryExtensionContext;
14
+
15
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0)) API_UNAVAILABLE(macos, watchos, tvos)
16
+ @protocol CXCallDirectoryExtensionContextDelegate <NSObject>
17
+
18
+ - (void)requestFailedForExtensionContext:(CXCallDirectoryExtensionContext *)extensionContext withError:(NSError *)error;
19
+
20
+ @end
21
+
22
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0)) API_UNAVAILABLE(macos, watchos, tvos)
23
+ @interface CXCallDirectoryExtensionContext : NSExtensionContext
24
+
25
+ @property (nonatomic, weak, nullable) id<CXCallDirectoryExtensionContextDelegate> delegate;
26
+
27
+ /**
28
+ Whether the request should provide incremental data.
29
+
30
+ If this is called at the beginning of the request (before any entries have been added or removed) and the result is YES,
31
+ then the request must only provide an "incremental" set of entries, i.e. only add or remove entries relative to the last time data
32
+ was loaded for the extension. Otherwise, if this method is not called OR is called and returns NO, then the request must provide
33
+ a "complete" set of entries, adding the full list of entries from scratch (and removing none), regardless of whether data has ever been
34
+ successfully loaded in the past.
35
+ */
36
+ @property (nonatomic, readonly, getter=isIncremental) BOOL incremental API_AVAILABLE(ios(11.0), macCatalyst(13.0)) API_UNAVAILABLE(macos, watchos);
37
+
38
+ - (void)addBlockingEntryWithNextSequentialPhoneNumber:(CXCallDirectoryPhoneNumber)phoneNumber;
39
+
40
+ /**
41
+ Remove blocking entry with the specified phone number.
42
+
43
+ May only be used when `-isIncremental` returns YES, indicating that the request should provide incremental entries and thus may use this
44
+ API to remove a previously-added blocking entry.
45
+
46
+ @param phoneNumber The blocking entry phone number to remove.
47
+ */
48
+ - (void)removeBlockingEntryWithPhoneNumber:(CXCallDirectoryPhoneNumber)phoneNumber API_AVAILABLE(ios(11.0), macCatalyst(13.0)) API_UNAVAILABLE(macos, watchos);
49
+
50
+ /**
51
+ Remove all currently-stored blocking entries.
52
+
53
+ May only be used when `-isIncremental` returns YES, indicating that the request should provide incremental entries and thus may use this
54
+ API to remove all previously-added blocking entries.
55
+ */
56
+ - (void)removeAllBlockingEntries API_AVAILABLE(ios(11.0), macCatalyst(13.0)) API_UNAVAILABLE(macos, watchos);
57
+
58
+ - (void)addIdentificationEntryWithNextSequentialPhoneNumber:(CXCallDirectoryPhoneNumber)phoneNumber label:(NSString *)label;
59
+
60
+ /**
61
+ Remove identification entry with the specified phone number.
62
+
63
+ May only be used when `-isIncremental` returns YES, indicating that the request should provide incremental entries and thus may use this
64
+ API to remove a previously-added identification entry. Removes all identification entries with the specified phone number, even if
65
+ multiple identification entries with different labels are present for a single phone number.
66
+
67
+ @param phoneNumber The identification entry phone number to remove.
68
+ */
69
+ - (void)removeIdentificationEntryWithPhoneNumber:(CXCallDirectoryPhoneNumber)phoneNumber API_AVAILABLE(ios(11.0), macCatalyst(13.0)) API_UNAVAILABLE(macos, watchos);
70
+
71
+ /**
72
+ Remove all currently-stored identification entries.
73
+
74
+ May only be used when `-isIncremental` returns YES, indicating that the request should provide incremental entries and thus may use this
75
+ API to remove all previously-added identification entries.
76
+ */
77
+ - (void)removeAllIdentificationEntries API_AVAILABLE(ios(11.0), macCatalyst(13.0)) API_UNAVAILABLE(macos, watchos);
78
+
79
+ - (void)completeRequestWithCompletionHandler:(nullable void (^)(BOOL expired))completion;
80
+
81
+ // Use -completeRequestWithCompletionHandler: instead
82
+ - (void)completeRequestReturningItems:(nullable NSArray *)items completionHandler:(void (^__nullable)(BOOL expired))completionHandler NS_UNAVAILABLE;
83
+
84
+ @end
85
+
86
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,29 @@
1
+ //
2
+ // CXCallDirectoryManager.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2016 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ typedef NS_ENUM(NSInteger, CXCallDirectoryEnabledStatus) {
13
+ CXCallDirectoryEnabledStatusUnknown = 0,
14
+ CXCallDirectoryEnabledStatusDisabled = 1,
15
+ CXCallDirectoryEnabledStatusEnabled = 2,
16
+ } API_AVAILABLE(ios(10.0), macCatalyst(13.0)) API_UNAVAILABLE(macos, watchos, tvos);
17
+
18
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0)) API_UNAVAILABLE(macos, watchos, tvos)
19
+ @interface CXCallDirectoryManager : NSObject
20
+
21
+ @property (readonly, class) CXCallDirectoryManager *sharedInstance;
22
+
23
+ - (void)reloadExtensionWithIdentifier:(NSString *)identifier completionHandler:(nullable void (^)(NSError *_Nullable error))completion;
24
+ - (void)getEnabledStatusForExtensionWithIdentifier:(NSString *)identifier completionHandler:(void (^)(CXCallDirectoryEnabledStatus enabledStatus, NSError *_Nullable error))completion;
25
+ - (void)openSettingsWithCompletionHandler:(nullable void (^)(NSError *_Nullable error))completion API_AVAILABLE(ios(13.4), macCatalyst(14.0)) API_UNAVAILABLE( macos, watchos, tvos);
26
+
27
+ @end
28
+
29
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,21 @@
1
+ //
2
+ // CXCallDirectoryProvider.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2016 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @class CXCallDirectoryExtensionContext;
13
+
14
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0)) API_UNAVAILABLE(macos, watchos, tvos)
15
+ @interface CXCallDirectoryProvider : NSObject <NSExtensionRequestHandling>
16
+
17
+ - (void)beginRequestWithExtensionContext:(CXCallDirectoryExtensionContext *)context;
18
+
19
+ @end
20
+
21
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,34 @@
1
+ //
2
+ // CXCallObserver.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2016 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @class CXCall;
13
+ @class CXCallObserver;
14
+
15
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
16
+ @protocol CXCallObserverDelegate <NSObject>
17
+
18
+ - (void)callObserver:(CXCallObserver *)callObserver callChanged:(CXCall *)call;
19
+
20
+ @end
21
+
22
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
23
+ @interface CXCallObserver : NSObject
24
+
25
+ /// Retrieve the current call list, blocking on initial state retrieval if necessary
26
+ @property (nonatomic, readonly, copy) NSArray<CXCall *> *calls;
27
+
28
+ /// Set delegate and optional queue for delegate callbacks to be performed on.
29
+ /// A nil queue implies that delegate callbacks should happen on the main queue. The delegate is stored weakly
30
+ - (void)setDelegate:(nullable id<CXCallObserverDelegate>)delegate queue:(nullable dispatch_queue_t)queue;
31
+
32
+ @end
33
+
34
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,43 @@
1
+ //
2
+ // CXCallUpdate.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2015 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @class CXHandle;
13
+
14
+ // Any property that is not set will be ignored
15
+
16
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
17
+ @interface CXCallUpdate : NSObject <NSCopying>
18
+
19
+ /// Handle for the remote party (for an incoming call, the caller; for an outgoing call, the callee).
20
+ @property (nonatomic, copy, nullable) CXHandle *remoteHandle;
21
+
22
+ /// Override the computed caller name to a provider-defined value.
23
+ /// Normally the system will determine the appropriate caller name to display (e.g. using the user's contacts) based on the supplied caller identifier. Set this property to customize.
24
+ @property (nonatomic, copy, nullable) NSString *localizedCallerName;
25
+
26
+ /// Whether the call can be held on its own or swapped with another call
27
+ @property (nonatomic) BOOL supportsHolding;
28
+
29
+ /// Whether the call can be grouped (merged) with other calls when it is ungrouped
30
+ @property (nonatomic) BOOL supportsGrouping;
31
+
32
+ /// The call can be ungrouped (taken private) when it is grouped
33
+ @property (nonatomic) BOOL supportsUngrouping;
34
+
35
+ /// The call can send DTMF tones via hard pause digits or in-call keypad entries
36
+ @property (nonatomic) BOOL supportsDTMF;
37
+
38
+ /// The call includes video in addition to audio.
39
+ @property (nonatomic) BOOL hasVideo;
40
+
41
+ @end
42
+
43
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,20 @@
1
+ //
2
+ // CXEndCallAction.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2015 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXCallAction.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
13
+ @interface CXEndCallAction : CXCallAction
14
+
15
+ /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call ended.
16
+ - (void)fulfillWithDateEnded:(NSDate *)dateEnded;
17
+
18
+ @end
19
+
20
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,66 @@
1
+ //
2
+ // CXError.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2016 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ CX_EXTERN NSErrorDomain const CXErrorDomain API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
13
+ CX_EXTERN NSErrorDomain const CXErrorDomainIncomingCall API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
14
+ CX_EXTERN NSErrorDomain const CXErrorDomainRequestTransaction API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
15
+ CX_EXTERN NSErrorDomain const CXErrorDomainCallDirectoryManager API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
16
+ CX_EXTERN NSErrorDomain const CXErrorDomainNotificationServiceExtension API_AVAILABLE(ios(14.5), macCatalyst(14.5), watchos(9.0)) API_UNAVAILABLE(tvos, macos);
17
+
18
+ typedef NS_ERROR_ENUM(CXErrorDomain, CXErrorCode) {
19
+ CXErrorCodeUnknownError = 0,
20
+ CXErrorCodeUnentitled API_AVAILABLE(ios(13.2), macCatalyst(13.2), watchos(9.0)) API_UNAVAILABLE(macos) = 1,
21
+ CXErrorCodeInvalidArgument API_AVAILABLE(ios(13.2), macCatalyst(13.2), watchos(9.0)) API_UNAVAILABLE(macos) = 2,
22
+ CXErrorCodeMissingVoIPBackgroundMode API_AVAILABLE(ios(14.5), macCatalyst(14.5), watchos(9.0)) API_UNAVAILABLE(tvos, macos) = 3,
23
+ } API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
24
+
25
+ typedef NS_ERROR_ENUM(CXErrorDomainIncomingCall, CXErrorCodeIncomingCallError) {
26
+ CXErrorCodeIncomingCallErrorUnknown = 0,
27
+ CXErrorCodeIncomingCallErrorUnentitled = 1,
28
+ CXErrorCodeIncomingCallErrorCallUUIDAlreadyExists = 2,
29
+ CXErrorCodeIncomingCallErrorFilteredByDoNotDisturb = 3,
30
+ CXErrorCodeIncomingCallErrorFilteredByBlockList = 4,
31
+ CXErrorCodeIncomingCallErrorFilteredDuringRestrictedSharingMode = 5,
32
+ CXErrorCodeIncomingCallErrorCallIsProtected = 6,
33
+ CXErrorCodeIncomingCallErrorFilteredBySensitiveParticipants = 7,
34
+ } API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
35
+
36
+ typedef NS_ERROR_ENUM(CXErrorDomainRequestTransaction, CXErrorCodeRequestTransactionError) {
37
+ CXErrorCodeRequestTransactionErrorUnknown = 0,
38
+ CXErrorCodeRequestTransactionErrorUnentitled = 1,
39
+ CXErrorCodeRequestTransactionErrorUnknownCallProvider = 2,
40
+ CXErrorCodeRequestTransactionErrorEmptyTransaction = 3,
41
+ CXErrorCodeRequestTransactionErrorUnknownCallUUID = 4,
42
+ CXErrorCodeRequestTransactionErrorCallUUIDAlreadyExists = 5,
43
+ CXErrorCodeRequestTransactionErrorInvalidAction = 6,
44
+ CXErrorCodeRequestTransactionErrorMaximumCallGroupsReached = 7,
45
+ CXErrorCodeRequestTransactionErrorCallIsProtected = 8,
46
+ } API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
47
+
48
+ typedef NS_ERROR_ENUM(CXErrorDomainCallDirectoryManager, CXErrorCodeCallDirectoryManagerError) {
49
+ CXErrorCodeCallDirectoryManagerErrorUnknown = 0,
50
+ CXErrorCodeCallDirectoryManagerErrorNoExtensionFound = 1,
51
+ CXErrorCodeCallDirectoryManagerErrorLoadingInterrupted = 2,
52
+ CXErrorCodeCallDirectoryManagerErrorEntriesOutOfOrder = 3,
53
+ CXErrorCodeCallDirectoryManagerErrorDuplicateEntries = 4,
54
+ CXErrorCodeCallDirectoryManagerErrorMaximumEntriesExceeded = 5,
55
+ CXErrorCodeCallDirectoryManagerErrorExtensionDisabled = 6,
56
+ CXErrorCodeCallDirectoryManagerErrorCurrentlyLoading API_AVAILABLE(ios(10.3), macCatalyst(13.0)) = 7,
57
+ CXErrorCodeCallDirectoryManagerErrorUnexpectedIncrementalRemoval API_AVAILABLE(ios(11.0), macCatalyst(13.0)) = 8,
58
+ } API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
59
+
60
+ typedef NS_ERROR_ENUM(CXErrorDomainNotificationServiceExtension, CXErrorCodeNotificationServiceExtensionError) {
61
+ CXErrorCodeNotificationServiceExtensionErrorUnknown = 0,
62
+ CXErrorCodeNotificationServiceExtensionErrorInvalidClientProcess = 1,
63
+ CXErrorCodeNotificationServiceExtensionErrorMissingNotificationFilteringEntitlement = 2,
64
+ } API_AVAILABLE(ios(14.5), macCatalyst(14.5), watchos(9.0)) API_UNAVAILABLE(tvos, macos);
65
+
66
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,31 @@
1
+ //
2
+ // CXHandle.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2016 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ typedef NS_ENUM(NSInteger, CXHandleType) {
13
+ CXHandleTypeGeneric = 1,
14
+ CXHandleTypePhoneNumber = 2,
15
+ CXHandleTypeEmailAddress = 3,
16
+ } API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
17
+
18
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
19
+ @interface CXHandle : NSObject <NSCopying, NSSecureCoding>
20
+
21
+ @property (nonatomic, readonly) CXHandleType type;
22
+ @property (nonatomic, readonly, copy) NSString *value;
23
+
24
+ - (instancetype)initWithType:(CXHandleType)type value:(NSString *)value NS_DESIGNATED_INITIALIZER;
25
+ - (instancetype)init NS_UNAVAILABLE;
26
+
27
+ - (BOOL)isEqualToHandle:(CXHandle *)handle;
28
+
29
+ @end
30
+
31
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,33 @@
1
+ //
2
+ // CXPlayDTMFCallAction.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2015 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXCallAction.h>
9
+
10
+ typedef NS_ENUM(NSInteger, CXPlayDTMFCallActionType) {
11
+ CXPlayDTMFCallActionTypeSingleTone = 1, // The user tapped a digit on the in-call keypad
12
+ CXPlayDTMFCallActionTypeSoftPause = 2, // The user included digits after a soft pause in their dial string
13
+ CXPlayDTMFCallActionTypeHardPause = 3, // The user included digits after a hard pause in their dial string
14
+ } API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
15
+
16
+ NS_ASSUME_NONNULL_BEGIN
17
+
18
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
19
+ @interface CXPlayDTMFCallAction : CXCallAction
20
+
21
+ - (instancetype)initWithCallUUID:(NSUUID *)callUUID digits:(NSString *)digits type:(CXPlayDTMFCallActionType)type NS_DESIGNATED_INITIALIZER;
22
+ - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
23
+ - (instancetype)initWithCallUUID:(NSUUID *)callUUID NS_UNAVAILABLE;
24
+
25
+ // The string representation of the digits that should be played as DTMF tones
26
+ @property (nonatomic, copy) NSString *digits;
27
+
28
+ // Whether or not the string of digits represents tones following a hard or soft pause
29
+ @property (nonatomic) CXPlayDTMFCallActionType type;
30
+
31
+ @end
32
+
33
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,127 @@
1
+ //
2
+ // CXProvider.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2015 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @class CXAction;
13
+ @class CXCallAction;
14
+ @class CXCallUpdate;
15
+ @class CXProvider;
16
+ @class CXProviderConfiguration;
17
+ @class CXTransaction;
18
+ @class CXAction;
19
+ @class CXCallAction;
20
+ @class CXStartCallAction;
21
+ @class CXAnswerCallAction;
22
+ @class CXEndCallAction;
23
+ @class CXSetHeldCallAction;
24
+ @class CXSetMutedCallAction;
25
+ @class CXSetGroupCallAction;
26
+ @class CXPlayDTMFCallAction;
27
+ #if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && !TARGET_OS_VISION
28
+ @class CXSetTranslatingCallAction;
29
+ #endif
30
+ @class AVAudioSession;
31
+
32
+ typedef NS_ENUM(NSInteger, CXCallEndedReason) {
33
+ CXCallEndedReasonFailed = 1, // An error occurred while trying to service the call
34
+ CXCallEndedReasonRemoteEnded = 2, // The remote party explicitly ended the call
35
+ CXCallEndedReasonUnanswered = 3, // The call never started connecting and was never explicitly ended (e.g. outgoing/incoming call timeout)
36
+ CXCallEndedReasonAnsweredElsewhere = 4, // The call was answered on another device
37
+ CXCallEndedReasonDeclinedElsewhere = 5, // The call was declined on another device
38
+ } API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
39
+
40
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
41
+ @protocol CXProviderDelegate <NSObject>
42
+
43
+ /// Called when the provider has been reset. Delegates must respond to this callback by cleaning up all internal call state (disconnecting communication channels, releasing network resources, etc.). This callback can be treated as a request to end all calls without the need to respond to any actions
44
+ - (void)providerDidReset:(CXProvider *)provider;
45
+
46
+ @optional
47
+
48
+ /// Called when the provider has been fully created and is ready to send actions and receive updates
49
+ - (void)providerDidBegin:(CXProvider *)provider;
50
+
51
+ /// Called whenever a new transaction should be executed. Return whether or not the transaction was handled:
52
+ ///
53
+ /// - NO: the transaction was not handled indicating that the perform*CallAction methods should be called sequentially for each action in the transaction
54
+ /// - YES: the transaction was handled and the perform*CallAction methods should not be called sequentially
55
+ ///
56
+ /// If the method is not implemented, NO is assumed.
57
+ - (BOOL)provider:(CXProvider *)provider executeTransaction:(CXTransaction *)transaction;
58
+
59
+ // If provider:executeTransaction:error: returned NO, each perform*CallAction method is called sequentially for each action in the transaction
60
+ - (void)provider:(CXProvider *)provider performStartCallAction:(CXStartCallAction *)action;
61
+ - (void)provider:(CXProvider *)provider performAnswerCallAction:(CXAnswerCallAction *)action;
62
+ - (void)provider:(CXProvider *)provider performEndCallAction:(CXEndCallAction *)action;
63
+ - (void)provider:(CXProvider *)provider performSetHeldCallAction:(CXSetHeldCallAction *)action;
64
+ - (void)provider:(CXProvider *)provider performSetMutedCallAction:(CXSetMutedCallAction *)action;
65
+ - (void)provider:(CXProvider *)provider performSetGroupCallAction:(CXSetGroupCallAction *)action;
66
+ - (void)provider:(CXProvider *)provider performPlayDTMFCallAction:(CXPlayDTMFCallAction *)action;
67
+ #if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && !TARGET_OS_VISION
68
+ - (void)provider:(CXProvider *)provider performSetTranslatingCallAction:(CXSetTranslatingCallAction *)action;
69
+ #endif
70
+ /// 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
71
+ - (void)provider:(CXProvider *)provider timedOutPerformingAction:(CXAction *)action;
72
+
73
+ /// Called when the provider's audio session activation state changes.
74
+ - (void)provider:(CXProvider *)provider didActivateAudioSession:(AVAudioSession *)audioSession;
75
+ - (void)provider:(CXProvider *)provider didDeactivateAudioSession:(AVAudioSession *)audioSession;
76
+
77
+ @end
78
+
79
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
80
+ @interface CXProvider : NSObject
81
+
82
+ /// Initialize a new provider instance with the supplied configuration
83
+ - (instancetype)initWithConfiguration:(CXProviderConfiguration *)configuration NS_DESIGNATED_INITIALIZER;
84
+ + (instancetype)new NS_UNAVAILABLE;
85
+ - (instancetype)init NS_UNAVAILABLE;
86
+
87
+ /// Set delegate and optional queue for delegate callbacks to be performed on.
88
+ /// A nil queue implies that delegate callbacks should happen on the main queue. The delegate is stored weakly
89
+ - (void)setDelegate:(nullable id<CXProviderDelegate>)delegate queue:(nullable dispatch_queue_t)queue;
90
+
91
+ /// Report a new incoming call to the system.
92
+ ///
93
+ /// If completion is invoked with a non-nil `error`, the incoming call has been disallowed by the system and will not be displayed, so the provider should not proceed with the call.
94
+ ///
95
+ /// Completion block will be called on delegate queue, if specified, otherwise on a private serial queue.
96
+ - (void)reportNewIncomingCallWithUUID:(NSUUID *)UUID update:(CXCallUpdate *)update completion:(void (^)(NSError *_Nullable error))completion;
97
+
98
+ /// Report an update to call information.
99
+ - (void)reportCallWithUUID:(NSUUID *)UUID updated:(CXCallUpdate *)update;
100
+
101
+ /// Report that a call ended. A nil value for `dateEnded` results in the ended date being set to now.
102
+ - (void)reportCallWithUUID:(NSUUID *)UUID endedAtDate:(nullable NSDate *)dateEnded reason:(CXCallEndedReason)endedReason;
103
+
104
+ /// Report that an outgoing call started connecting. A nil value for `dateStartedConnecting` results in the started connecting date being set to now.
105
+ - (void)reportOutgoingCallWithUUID:(NSUUID *)UUID startedConnectingAtDate:(nullable NSDate *)dateStartedConnecting;
106
+
107
+ /// Report that an outgoing call connected. A nil value for `dateConnected` results in the connected date being set to now.
108
+ - (void)reportOutgoingCallWithUUID:(NSUUID *)UUID connectedAtDate:(nullable NSDate *)dateConnected;
109
+
110
+ /// From within a Notification Service Extension, request the containing application be launched to handle an incoming VoIP call. The application's PKPushRegistryDelegate must handle the push upon launch.
111
+ + (void)reportNewIncomingVoIPPushPayload:(NSDictionary *)dictionaryPayload completion:(nullable void (^)(NSError *_Nullable))completion API_UNAVAILABLE( tvos, watchos, macos) API_AVAILABLE(ios(14.5), macCatalyst(14.5));
112
+
113
+ /// The receiver's current configuration.
114
+ @property (nonatomic, readwrite, copy) CXProviderConfiguration *configuration;
115
+
116
+ /// Invalidate the receiver. All existing calls will be marked as ended in failure. The provider must be invalidated before it is deallocated.
117
+ - (void)invalidate;
118
+
119
+ /// List of all transactions that are incomplete.
120
+ @property (nonatomic, readonly, copy) NSArray<CXTransaction *> *pendingTransactions;
121
+
122
+ /// Returns subset of call actions contained in any transaction in -pendingTransactions of the specified class and with the specified call UUID.
123
+ - (NSArray<__kindof CXCallAction *> *)pendingCallActionsOfClass:(Class)callActionClass withCallUUID:(NSUUID *)callUUID;
124
+
125
+ @end
126
+
127
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,42 @@
1
+ //
2
+ // CXProviderConfiguration.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2016 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), macos(11.0), watchos(9.0)) API_UNAVAILABLE(tvos)
13
+ @interface CXProviderConfiguration : NSObject <NSCopying>
14
+
15
+ /// Localized name of the provider
16
+ @property (nonatomic, readonly, copy, nullable) NSString *localizedName API_DEPRECATED("No longer supported", ios(10.0, 14.0), macCatalyst(13.0, 14.0), macos(11.0, 11.0)) API_UNAVAILABLE(tvos, watchos);
17
+
18
+ /// Name of resource in app's bundle to play as ringtone for incoming call
19
+ @property (nonatomic, strong, nullable) NSString *ringtoneSound;
20
+
21
+ @property (nonatomic, copy, nullable) NSData *iconTemplateImageData; // Image should be a square with side length of 40 points
22
+ @property (nonatomic) NSUInteger maximumCallGroups; // Default 2
23
+ @property (nonatomic) NSUInteger maximumCallsPerCallGroup; // Default 5
24
+
25
+ /// Whether this provider's calls should be included in the system's Recents list at the end of each call.
26
+ /// Default: YES
27
+ @property (nonatomic) BOOL includesCallsInRecents API_AVAILABLE(ios(11.0), macCatalyst(13.0), macos(11.0), watchos(9.0));
28
+
29
+ @property (nonatomic) BOOL supportsVideo; // Default NO
30
+
31
+ @property (nonatomic) BOOL supportsAudioTranslation API_AVAILABLE(ios(26.0));
32
+
33
+ // Numbers are of type CXHandleType
34
+ @property (nonatomic, copy) NSSet<NSNumber *> *supportedHandleTypes;
35
+
36
+ - (instancetype)init NS_DESIGNATED_INITIALIZER API_AVAILABLE(ios(14.0), macCatalyst(14.0), macos(11.0), watchos(9.0)) API_UNAVAILABLE(tvos);
37
+ - (instancetype)initWithLocalizedName:(NSString *)localizedName API_DEPRECATED_WITH_REPLACEMENT("init", ios(10.0, 14.0), macCatalyst(13.0, 14.0), macos(11.0, 11.0)) API_UNAVAILABLE(tvos, watchos);
38
+
39
+
40
+ @end
41
+
42
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,27 @@
1
+ //
2
+ // CXSetGroupCallAction.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2015 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXCallAction.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
13
+ @interface CXSetGroupCallAction : CXCallAction
14
+
15
+ - (instancetype)initWithCallUUID:(NSUUID *)callUUID callUUIDToGroupWith:(nullable NSUUID *)callUUIDToGroupWith NS_DESIGNATED_INITIALIZER;
16
+ - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
17
+ - (instancetype)initWithCallUUID:(NSUUID *)callUUID NS_UNAVAILABLE;
18
+
19
+ /// The UUID of another call to group with.
20
+ ///
21
+ /// - If the call for this action's UUID is already in a group, it should leave that group if necessary.
22
+ /// - If nil, leave any group the call is currently in.
23
+ @property (nonatomic, copy, nullable) NSUUID *callUUIDToGroupWith;
24
+
25
+ @end
26
+
27
+ NS_ASSUME_NONNULL_END