peachsim 0.1.1950 → 0.1.1952

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 (110) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +1 -1
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +1 -1
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +1 -1
  13. package/dist-lib/bundle-channel.cjs +39 -13
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +1 -1
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +1 -1
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +1 -1
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +1 -1
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +1 -1
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +12 -4
  27. package/dist-lib/expo-swift-metadata.cjs +1 -1
  28. package/dist-lib/expo-swift-metadata.mjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -1
  30. package/dist-lib/host/bridge-host.cjs +39 -13
  31. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +2 -2
  37. package/dist-lib/jump-to-source-babel.cjs +1 -1
  38. package/dist-lib/jump-to-source-native.cjs +1 -1
  39. package/dist-lib/kotlin-host.cjs +1 -1
  40. package/dist-lib/menu.cjs +1 -1
  41. package/dist-lib/menu.mjs +1 -1
  42. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  44. package/dist-lib/metro-production-bundle.cjs +1 -1
  45. package/dist-lib/metro-production-bundle.mjs +1 -1
  46. package/dist-lib/metro.cjs +2 -2
  47. package/dist-lib/native-app-identity-project.cjs +2 -2
  48. package/dist-lib/native-app-identity-project.mjs +2 -2
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/pdfium-raster.cjs +1 -1
  54. package/dist-lib/pdfium-raster.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/public-origins-lib-esm.json +24 -24
  60. package/dist-lib/public-origins-lib.json +53 -53
  61. package/dist-lib/react-native-host-modules.cjs +1 -1
  62. package/dist-lib/react-native-host-modules.mjs +1 -1
  63. package/dist-lib/reap-browser.cjs +1 -1
  64. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  65. package/dist-lib/sdk.cjs +1 -1
  66. package/dist-lib/sdk.mjs +1 -1
  67. package/dist-lib/skills.cjs +39 -13
  68. package/dist-lib/swift-compile.cjs +2 -2
  69. package/dist-lib/swift-compile.mjs +2 -2
  70. package/dist-lib/swift-package.cjs +1 -1
  71. package/dist-lib/swift-package.mjs +1 -1
  72. package/dist-lib/swift-submit.cjs +1 -1
  73. package/dist-lib/swift-submit.mjs +1 -1
  74. package/dist-lib/swift-toolchain.cjs +1 -1
  75. package/dist-lib/swift.cjs +1 -1
  76. package/dist-lib/vite-swift.cjs +11 -3
  77. package/dist-lib/vite.cjs +1 -1
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +3 -0
  81. package/package.json +1 -1
  82. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AUAudioUnit.h +1 -0
  83. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AUAudioUnitImplementation.h +1 -0
  84. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AUComponent.h +1 -0
  85. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AUParameters.h +1 -0
  86. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioCodec.h +1 -0
  87. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioComponent.h +1 -0
  88. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioOutputUnit.h +1 -0
  89. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnit.h +25 -0
  90. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnitParameters.h +1 -0
  91. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnitProperties.h +1 -0
  92. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/MusicDevice.h +1 -0
  93. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Modules/module.modulemap +6 -0
  94. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +17 -0
  95. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPBroadcast.h +192 -0
  96. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPBroadcastConfiguration.h +28 -0
  97. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPBroadcastExtension.h +154 -0
  98. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPError.h +56 -0
  99. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPPreviewViewController.h +52 -0
  100. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPScreenRecorder.h +150 -0
  101. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/ReplayKit.h +20 -0
  102. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Modules/module.modulemap +6 -0
  103. package/src/installed-native-libraries.ts +5 -1
  104. package/src/native-static-libraries.ts +8 -0
  105. package/src/nitro-adapter.lock.json +264 -264
  106. package/src/nitro-superset.lock.json +4 -4
  107. package/src/swift-distribution.lock.json +11 -11
  108. package/src/turbo-codegen-intake.ts +1 -0
  109. package/src/turbo-runtime.lock.json +22 -22
  110. package/src/turbo-source.ts +24 -1
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1950 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1952 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -12134,7 +12134,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
12134
12134
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
12135
12135
  var MULTI_MANIFEST_VERSION = 66;
12136
12136
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
12137
- var compilerSourceDigest = true ? "5ba16a172660afb20c60efe88153141d4e404fc7b7730f1cdcd5c172e56a963d" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
12137
+ var compilerSourceDigest = true ? "c9b71c433be7ae053bbb1d90b472879548fd556755c05d2d299263c9ef325815" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
12138
12138
  function swiftArtifactHash(input, release, moduleRoot) {
12139
12139
  const hash = (0, import_node_crypto12.createHash)("sha256");
12140
12140
  hash.update(`swift-compile
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1950 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1952 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import {
@@ -12110,7 +12110,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
12110
12110
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
12111
12111
  var MULTI_MANIFEST_VERSION = 66;
12112
12112
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
12113
- var compilerSourceDigest = true ? "5ba16a172660afb20c60efe88153141d4e404fc7b7730f1cdcd5c172e56a963d" : swiftCompilerSourceDigest(import.meta.dirname);
12113
+ var compilerSourceDigest = true ? "c9b71c433be7ae053bbb1d90b472879548fd556755c05d2d299263c9ef325815" : swiftCompilerSourceDigest(import.meta.dirname);
12114
12114
  function swiftArtifactHash(input, release, moduleRoot) {
12115
12115
  const hash = createHash13("sha256");
12116
12116
  hash.update(`swift-compile
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1950 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1952 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1950 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1952 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1950 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1952 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1950 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1952 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1950 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1952 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1950 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1952 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1950 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1952 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -16447,7 +16447,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
16447
16447
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
16448
16448
  var MULTI_MANIFEST_VERSION = 66;
16449
16449
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
16450
- var compilerSourceDigest = true ? "5ba16a172660afb20c60efe88153141d4e404fc7b7730f1cdcd5c172e56a963d" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
16450
+ var compilerSourceDigest = true ? "c9b71c433be7ae053bbb1d90b472879548fd556755c05d2d299263c9ef325815" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
16451
16451
  function swiftArtifactHash(input, release, moduleRoot) {
16452
16452
  const hash = (0, import_node_crypto12.createHash)("sha256");
16453
16453
  hash.update(`swift-compile
@@ -29615,7 +29615,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
29615
29615
  return hash.digest("hex");
29616
29616
  }
29617
29617
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
29618
- var STANDIN_SOURCE_DIGEST = true ? "8bf5b7389fe4f21e3cd1db2b0d4f2ac89aadb99d2bdeedd0488666b00b2d8c38" : standinSourceDigest();
29618
+ var STANDIN_SOURCE_DIGEST = true ? "ba6cce1103ee08642e863b4a702b83e9e8d6deffec60023d6535ec128b518a67" : standinSourceDigest();
29619
29619
 
29620
29620
  // src/swift-standins.ts
29621
29621
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -29778,6 +29778,14 @@ function simulatorNativeLibrary(dir) {
29778
29778
 
29779
29779
  // src/native-static-libraries.ts
29780
29780
  var NATIVE_STATIC_LIBRARY_RECIPES = [
29781
+ // react-native-libsodium's minimal apple build of the 1.0.20 release
29782
+ {
29783
+ name: "libsodium",
29784
+ nativeSha256: "4e5112bdb787a4305ddb8e464a129d4f002c2f0be5a62eb541b5122b769fc17a",
29785
+ upstream: "ebb65ef6ca439333c2bb41a0c1990587288da07f6c7fd07cb3a18cc18d30ce19",
29786
+ recipe: "c164067cbb87998d0539ac88e73fea0bdacc81a9ac8f8e92ac577c957581f626",
29787
+ archive: "libsodium.a"
29788
+ },
29781
29789
  {
29782
29790
  name: "moonshine_core",
29783
29791
  nativeSha256: "474dff8315a8e4d3a6fdd9f89c7264c79c5f84a5b9acbfdfb9fb0ee68d8c801e",
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1950 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1952 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1950 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1952 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1950 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1952 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -930,6 +930,9 @@ export type NativeUIEvent = import('../capture/nativeScreenCaptureContract.d.ts'
930
930
  } | {
931
931
  kind: 'keyboard.layout';
932
932
  layout: KeyboardLayoutSnapshot;
933
+ } | {
934
+ kind: 'keyboard.focusedInputLayout';
935
+ focusedInput: FocusedInputLayout | null;
933
936
  } | {
934
937
  kind: 'keyboard.selection';
935
938
  target: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.1950",
3
+ "version": "0.1.1952",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -0,0 +1 @@
1
+ #include <AudioToolbox/AUAudioUnit.h>
@@ -0,0 +1 @@
1
+ #include <AudioToolbox/AUAudioUnitImplementation.h>
@@ -0,0 +1 @@
1
+ #include <AudioToolbox/AUComponent.h>
@@ -0,0 +1 @@
1
+ #include <AudioToolbox/AUParameters.h>
@@ -0,0 +1 @@
1
+ #include <AudioToolbox/AudioCodec.h>
@@ -0,0 +1 @@
1
+ #include <AudioToolbox/AudioComponent.h>
@@ -0,0 +1 @@
1
+ #include <AudioToolbox/AudioOutputUnit.h>
@@ -0,0 +1,25 @@
1
+ // Umbrella header for AudioUnit.framework
2
+ // Deprecated: Use AudioToolbox
3
+
4
+ #ifndef AudioUnit_AudioUnit_h
5
+ #define AudioUnit_AudioUnit_h
6
+
7
+ #ifndef AUDIO_UNIT_VERSION
8
+ #define AUDIO_UNIT_VERSION 1070
9
+ #endif
10
+
11
+ #include <AudioUnit/AUComponent.h>
12
+ #include <AudioUnit/AudioCodec.h>
13
+ #include <AudioUnit/AudioComponent.h>
14
+ #include <AudioUnit/AudioOutputUnit.h>
15
+ #include <AudioUnit/AudioUnitParameters.h>
16
+ #include <AudioUnit/AudioUnitProperties.h>
17
+ #include <AudioUnit/MusicDevice.h>
18
+
19
+ #ifdef __OBJC2__
20
+ #include <AudioUnit/AUAudioUnit.h>
21
+ #include <AudioUnit/AUAudioUnitImplementation.h>
22
+ #include <AudioUnit/AUParameters.h>
23
+ #endif // __OBJC2__
24
+
25
+ #endif // AudioUnit_AudioUnit_h
@@ -0,0 +1 @@
1
+ #include <AudioToolbox/AudioUnitParameters.h>
@@ -0,0 +1 @@
1
+ #include <AudioToolbox/AudioUnitProperties.h>
@@ -0,0 +1 @@
1
+ #include <AudioToolbox/MusicDevice.h>
@@ -0,0 +1,6 @@
1
+ framework module AudioUnit [system] {
2
+ umbrella header "AudioUnit.h"
3
+
4
+ export *
5
+ module * { export * }
6
+ }
@@ -9,4 +9,21 @@ CF_EXTERN_C_BEGIN
9
9
  CFN_EXPORT const CFStringRef kCFStreamPropertySSLPeerTrust CF_AVAILABLE(10_5, 2_0);
10
10
  CFN_EXPORT const CFStringRef kCFStreamSSLValidatesCertificateChain CF_AVAILABLE(10_4, 2_0);
11
11
  CFN_EXPORT const CFStringRef kCFStreamPropertySSLSettings CF_AVAILABLE(10_4, 2_0);
12
+ CFN_EXPORT const CFStringRef kCFStreamSSLLevel CF_AVAILABLE(10_4, 2_0);
13
+ CFN_EXPORT const CFStringRef kCFStreamSSLPeerName CF_AVAILABLE(10_4, 2_0);
14
+ CFN_EXPORT const CFStringRef kCFStreamSSLCertificates CF_AVAILABLE(10_4, 2_0);
15
+ CFN_EXPORT const CFStringRef kCFStreamSSLIsServer CF_AVAILABLE(10_4, 2_0);
16
+ CFN_EXPORT const CFStringRef kCFStreamNetworkServiceType CF_AVAILABLE(10_7, 4_0);
17
+ CFN_EXPORT const CFStringRef kCFStreamNetworkServiceTypeVideo CF_AVAILABLE(10_7, 5_0);
18
+ CFN_EXPORT const CFStringRef kCFStreamNetworkServiceTypeVoice CF_AVAILABLE(10_7, 5_0);
19
+ CFN_EXPORT const CFStringRef kCFStreamNetworkServiceTypeBackground CF_AVAILABLE(10_7, 5_0);
20
+ CFN_EXPORT const CFStringRef kCFStreamNetworkServiceTypeResponsiveData __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0);
21
+ CFN_EXPORT const CFStringRef kCFStreamNetworkServiceTypeCallSignaling CF_AVAILABLE(10_12, 10_0);
22
+ CFN_EXPORT const CFStringRef kCFStreamNetworkServiceTypeAVStreaming __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0);
23
+ CFN_EXPORT const CFStringRef kCFStreamNetworkServiceTypeResponsiveAV __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0);
24
+ CFN_EXPORT const CFStringRef kCFStreamNetworkServiceTypeVoIP CF_DEPRECATED(10_7, 10_11, 4_0, 9_0, "use PushKit for VoIP control purposes");
25
+ CFN_EXPORT const CFStringRef kCFStreamPropertySSLPeerCertificates CF_DEPRECATED(10_4, 10_6, 2_0, 4_0);
26
+ CFN_EXPORT const CFStringRef kCFStreamSSLAllowsExpiredCertificates CF_DEPRECATED(10_4, 10_6, 2_0, 4_0);
27
+ CFN_EXPORT const CFStringRef kCFStreamSSLAllowsExpiredRoots CF_DEPRECATED(10_4, 10_6, 2_0, 4_0);
28
+ CFN_EXPORT const CFStringRef kCFStreamSSLAllowsAnyRoot CF_DEPRECATED(10_4, 10_6, 2_0, 4_0);
12
29
  CF_EXTERN_C_END
@@ -0,0 +1,192 @@
1
+ //
2
+ // RPBroadcast.h
3
+ // ReplayKit
4
+ //
5
+ // The following guidelines can be followed to add broadcasting capabilities to an application:
6
+ //
7
+ // Use the RPScreenRecorder singleton to enable the microphone and front-facing camera recording.
8
+ //
9
+ // Load an instance of RPBroadcastActivityViewController and present it when the user intends to start broadcasting. This will present a view controller thats allows the user to select from the broadcast servies available on the device. Selecting a broadcast service presents the service’s UI to the user and allows the user to sign-in and setup their broadcast.
10
+ //
11
+ // Once setup with the service is complete, an RPBroadcastController instance will be provided via the RPBroadcastActivityViewControllerDelegate protocol. This controller can be used to start, pause and finish the broadcast.
12
+ //
13
+ // RPBroadcastController will have an NSDictionary instance in its serviceInfo property which will contain a URL to their broadcast (which can be provided to the user to share prior to starting a broadcast), as well as other optional meta data the service may wish to provide.
14
+ //
15
+ // Copyright © 2016 Apple Inc. All rights reserved.
16
+ //
17
+ #include <TargetConditionals.h>
18
+
19
+ #if TARGET_OS_OSX
20
+ #import <AppKit/AppKit.h>
21
+ #endif
22
+
23
+ #if !TARGET_OS_OSX
24
+ #import <UIKit/UIKit.h>
25
+ #endif
26
+
27
+ NS_ASSUME_NONNULL_BEGIN
28
+
29
+ @protocol RPBroadcastActivityViewControllerDelegate;
30
+ @protocol RPBroadcastControllerDelegate;
31
+ @class RPBroadcastController;
32
+
33
+ #if TARGET_OS_OSX
34
+ API_DEPRECATED("No longer supported", macos(11.0, 27.0))
35
+
36
+ /*!
37
+ @abstract RPBroadcastActivityControllerDelegate is used to notify the caller when the user has finshed with the RPBroadcastActivityController's picker.
38
+ */
39
+ @protocol RPBroadcastActivityControllerDelegate;
40
+
41
+ API_DEPRECATED("No longer supported", macos(11.0, 27.0))
42
+ /*!
43
+ @class RPBroadcastActivityController
44
+ @abstract Controller object that allows clients to present the macOS broadcast picker and returns the RPBroadcastController object that controls broadcast functionality.
45
+ */
46
+ @interface RPBroadcastActivityController : NSObject
47
+ /*!
48
+ @abstract Shows the broadcast picker at specified origin point from specified application window. Loads a RPBroadcastActivityController instance and returns it in the handler block. Calling this will present a macOS picker with a list of available broadcast services for the user to select and return the the RPBroadcastActivityController object. Note, the origin point represent the top left hand corner position of the picker that will be displayed. Upon completion of the picker, the picker object will be automatically dismissed and the delegate's broadcastActivityController:didFinishWithBroadcastController:error: will be called.
49
+ @param point origin point where (0,0) is the bottom left of the specified application window
50
+ @param window application window presenting the picker. nil specifies the picker is presented from the application main window.
51
+ @param preferredExtension The extension bundle identifier for the preferred broadcast extension service. nil specifies all extensions will be shown.
52
+ @discussion The handler will be called after the user us finished with the picker and has finish setting up the broadcast extension, which will provide an instance of RPBroadcastAcvityController and an error if one occured.
53
+ */
54
+ + (void)showBroadcastPickerAtPoint:(CGPoint)point fromWindow:(NSWindow *_Nullable)window preferredExtensionIdentifier:(NSString *_Nullable)preferredExtension completionHandler:(void (^)(RPBroadcastActivityController *_Nullable broadcastActivityController, NSError *_Nullable error))handler API_DEPRECATED("No longer supported", macos(11.0, 27.0));
55
+
56
+ /*!
57
+ @abstract Delegate that is notified when the activity view controller is complete.
58
+ */
59
+ @property (nonatomic, weak, nullable) id<RPBroadcastActivityControllerDelegate> delegate;
60
+
61
+ @end
62
+
63
+ API_DEPRECATED("No longer supported", macos(11.0, 27.0))
64
+ @protocol RPBroadcastActivityControllerDelegate <NSObject>
65
+
66
+ /* @abstract Called when the controller is finished.
67
+ @param broadcastActivityController The controller instance.
68
+ @param broadcastController An RPBroadcastController instance that can be used to start and stop broadcasts to a user selected service.
69
+ @param error Optional error in the RPRecordingErrorCode domain. A nil error signifies that the user has successfully set up the broadcast with a broadcast service and is ready to start broadcasting.
70
+ */
71
+ - (void)broadcastActivityController:(RPBroadcastActivityController *)broadcastActivityController didFinishWithBroadcastController:(nullable RPBroadcastController *)broadcastController error:(nullable NSError *)error API_DEPRECATED("No longer supported", macos(11.0, 27.0));
72
+ @end
73
+ #endif
74
+
75
+ #if !TARGET_OS_OSX
76
+ /*! @class RPBroadcastActivityViewController
77
+ @abstract View controller that presents the user with a list of broadcast services installed on the device.
78
+ */
79
+ API_DEPRECATED("No longer supported", ios(10.0, 27.0), tvos(10.0, 27.0))
80
+ PEACH_SWIFT_CLASS(ReplayKit) @interface RPBroadcastActivityViewController : UIViewController
81
+
82
+ /* @abstract Loads a RPBroadcastActivityViewController instance and returns it in the handler block.
83
+
84
+ The view controller will present the user with a list of broadcast services available on the device and allow the user to set up a broadcast with the service through the service's UI.
85
+
86
+ The RPBroadcastActivityViewController can be presented using [UIViewController presentViewController:animated:completion:] and should be dismissed when the delegate's broadcastActivityViewController:didFinishWithBroadcastController:error: method is called. Note that on large screen devices such as iPad, the default presentation style for view controllers is a popover. For an instance of RPBroadcastActivityViewController to present properly on iPad, it needs to have its popoverPresentationController's sourceRect and sourceView configured.
87
+
88
+ @param broadcastActivityViewController The RPBroadcastActivityViewController which can be presented.
89
+ @param error Optional error in the RPRecordingErrorCode domain which is supplied in the event the view controller could not be loaded.
90
+ */
91
+ + (void)loadBroadcastActivityViewControllerWithHandler:(void (^)(RPBroadcastActivityViewController *_Nullable broadcastActivityViewController, NSError *_Nullable error))handler;
92
+
93
+ /* @abstract Loads a RPBroadcastActivityViewController instance and returns it in the handler block.
94
+
95
+ The view controller will present the user with a view that shows the preferred streaming extension service and allow the user to set up a broadcast with the service through the service's UI.
96
+
97
+ The RPBroadcastActivityViewController can be presented using [UIViewController presentViewController:animated:completion:] and should be dismissed when the delegate's broadcastActivityViewController:didFinishWithBroadcastController:error: method is called. Note that on large screen devices such as iPad, the default presentation style for view controllers is a popover. For an instance of RPBroadcastActivityViewController to present properly on iPad, it needs to have its popoverPresentationController's sourceRect and sourceView configured.
98
+
99
+ @param preferredExtension The extension bundle identifier for the preferred broadcast extension service
100
+ @param broadcastActivityViewController The RPBroadcastActivityViewController which can be presented, returns nil if ther eis no matching extension.
101
+ @param error Optional error in the RPRecordingErrorCode domain which is supplied in the event the view controller could not be loaded.
102
+ */
103
+ + (void)loadBroadcastActivityViewControllerWithPreferredExtension:(NSString *_Nullable)preferredExtension handler:(nonnull void (^)(RPBroadcastActivityViewController *_Nullable broadcastActivityViewController, NSError *_Nullable error))handler API_DEPRECATED("No longer supported", ios(11.0, 27.0)) API_UNAVAILABLE(tvos);
104
+
105
+ /* @abstract Delegate that is notified when the activity view controller is complete. */
106
+ @property (nonatomic, weak, nullable) id<RPBroadcastActivityViewControllerDelegate> delegate;
107
+ @end
108
+
109
+ API_DEPRECATED("No longer supported", ios(10.0, 27.0), tvos(10.0, 27.0))
110
+ @protocol RPBroadcastActivityViewControllerDelegate <NSObject>
111
+
112
+ /* @abstract Called when the view controller is finished.
113
+ @param broadcastActivityViewController The view controller instance.
114
+ @param broadcastController An RPBroadcastController instance that can be used to start and stop broadcasts to a user selected service.
115
+ @param error Optional error in the RPRecordingErrorCode domain. A nil error signifies that the user has successfully set up the broadcast with a broadcast service and is ready to start broadcasting.
116
+ */
117
+ - (void)broadcastActivityViewController:(RPBroadcastActivityViewController *)broadcastActivityViewController didFinishWithBroadcastController:(nullable RPBroadcastController *)broadcastController error:(nullable NSError *)error API_DEPRECATED("No longer supported", ios(10.0, 27.0), tvos(10.0, 27.0));
118
+ @end
119
+ #endif
120
+
121
+ /*! @class RPBroadcastController
122
+ @abstract Available once a user has successfully initiated a broadcast using an RPBroadcastActivityViewController. Can be used to start, pause and stop a broadcast.
123
+ */
124
+ API_DEPRECATED("No longer supported", ios(10.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0))
125
+ PEACH_SWIFT_CLASS(ReplayKit) @interface RPBroadcastController : NSObject
126
+ /* @abstract Indicates whether the controller is currently broadcasting. */
127
+ @property (nonatomic, readonly, getter = isBroadcasting) BOOL broadcasting;
128
+ /* @abstract Indicates whether the controller is currently paused. */
129
+ @property (nonatomic, readonly, getter = isPaused) BOOL paused;
130
+ /* @abstract URL that can be used to redirect the user to the on-going or completed broadcast. */
131
+ @property (nonatomic, readonly) NSURL *broadcastURL;
132
+ /* @abstract Dictionary updated by the service during a broadcast. The keys and values of this dictionary are defined by the broadcast service. KVO observable. */
133
+ @property (nonatomic, readonly, nullable) NSDictionary <NSString *, NSObject <NSCoding> *> *serviceInfo;
134
+ /* @abstract Delegate which will be notified when an error occurs during broadcast. */
135
+ @property (nonatomic, weak) id<RPBroadcastControllerDelegate> delegate;
136
+ /* @abstract bundleID of the broadcast extension which was selected by the user. */
137
+ @property (nullable, nonatomic, readonly) NSString *broadcastExtensionBundleID API_DEPRECATED("No longer supported", ios(10.0, 11.0), tvos(10.0, 11.0)) API_UNAVAILABLE(macos);
138
+ /* @abstract Start the broadcast.
139
+ @param error Optional error in the RPRecordingErrorCode domain. A nil error signifies that broadcasting has started successfully.
140
+ */
141
+ - (void)startBroadcastWithHandler:(void (^)(NSError *_Nullable error))handler;
142
+
143
+ /* @abstract Pause the broadcast. The broadcast will pause immediately. */
144
+ - (void)pauseBroadcast;
145
+
146
+ /* @abstract Resumes the broadcast. The broadcast will resume immediately. */
147
+ - (void)resumeBroadcast;
148
+
149
+ /* @abstract Finish the broadcast.
150
+ @param error Optional error in the RPRecordingErrorCode domain. A nil error signifies that broadcasting has finished successfully.
151
+ */
152
+ - (void)finishBroadcastWithHandler:(void (^)(NSError *_Nullable error))handler;
153
+ @end
154
+
155
+ API_DEPRECATED("No longer supported", ios(10.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0))
156
+ @protocol RPBroadcastControllerDelegate <NSObject>
157
+ @optional
158
+
159
+ /* @abstract Called when broadcasting finishes due to an error.
160
+ @param broadcastController The controller instance.
161
+ @param error Required error in the RPRecordingErrorCode domain.
162
+ */
163
+
164
+ - (void)broadcastController:(RPBroadcastController *)broadcastController didFinishWithError:(nullable NSError *)error;
165
+ /* @abstract Called when the broadcast service has data to pass back to broadcasting app.
166
+ @param broadcastController The controller instance.
167
+ @param serviceInfo NSDictionary instance with keys and values defined by the broadcasting service.
168
+ */
169
+ - (void)broadcastController:(RPBroadcastController *)broadcastController didUpdateServiceInfo:(NSDictionary <NSString *, NSObject <NSCoding> *> *)serviceInfo;
170
+
171
+ /* @abstract Called when the broadcast service has updated broadcastURL.
172
+ @param broadcastController The controller instance.
173
+ @param broadcastURL NSURL instance with URL of the resource where broacast can be viewed. Defined by broadcast service.
174
+ */
175
+ - (void)broadcastController:(RPBroadcastController *)broadcastController didUpdateBroadcastURL:(NSURL *)broadcastURL API_DEPRECATED("No longer supported", ios(11.0, 27.0), tvos(11.0, 27.0));
176
+ @end
177
+
178
+ #if !TARGET_OS_OSX
179
+ /*! @class RPSystemBroadcastPickerView
180
+ @abstract View that presents the user with a button for starting iOS system broadcast using preferred broadcast service.
181
+ */
182
+ API_DEPRECATED("Use ScreenCaptureKit SCContentSharingPicker instead", ios(12.0, 27.0))
183
+ API_UNAVAILABLE(tvos, macos)
184
+ PEACH_SWIFT_CLASS(ReplayKit) @interface RPSystemBroadcastPickerView : UIView <NSCoding>
185
+ /* @abstract Bundle identifier of extension that should be used for broadcast. Default is nil which means that all extensions will be presented */
186
+ @property (nonatomic, strong, nullable) NSString *preferredExtension;
187
+ /* @abstract Indicates whether the Microphone button is visible in broadcast picker view. Default is YES. */
188
+ @property (nonatomic, assign) BOOL showsMicrophoneButton;
189
+ @end
190
+ #endif
191
+
192
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,28 @@
1
+ //
2
+ // RPBroadcastConfiguration.h
3
+ // ReplayKit
4
+ //
5
+ // Copyright © 2016 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ #if !TARGET_OS_OSX
11
+
12
+ API_DEPRECATED("No longer supported", ios(10.0, 11.0), tvos(10.0, 11.0))
13
+
14
+ NS_ASSUME_NONNULL_BEGIN
15
+
16
+ PEACH_SWIFT_CLASS(ReplayKit) @interface RPBroadcastConfiguration : NSObject <NSCoding, NSSecureCoding>
17
+
18
+ /* @abstract Specify the duration of a movie clip before it is delivered to the movie clip handler extension. Default is 5 seconds. */
19
+ @property (nonatomic, assign) NSTimeInterval clipDuration;
20
+
21
+ /* @abstract Override the video compression properties used to encode movie clips. See AVVideoCompressionPropertiesKey in <AVFoundation/AVVideoSettings.h> for available properties. */
22
+ @property (nonatomic, strong, nullable) NSDictionary <NSString *, NSObject <NSCoding, NSSecureCoding> *> *videoCompressionProperties;
23
+
24
+ @end
25
+
26
+ NS_ASSUME_NONNULL_END
27
+
28
+ #endif // !TARGET_OS_OSX
@@ -0,0 +1,154 @@
1
+ //
2
+ // RPBroadcastExtension.h
3
+ // ReplayKit
4
+ //
5
+ // Copyright © 2016 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <AVFoundation/AVFoundation.h>
10
+ #if TARGET_OS_OSX
11
+ #import <AppKit/AppKit.h>
12
+ #else
13
+ #import <UIKit/UIKit.h>
14
+ #endif
15
+
16
+ #import <ReplayKit/RPBroadcastConfiguration.h>
17
+
18
+ NS_ASSUME_NONNULL_BEGIN
19
+ /*!
20
+ @category NSExtensionContext (RPBroadcastExtension)
21
+ @abstract Category which defines the method to call from on an extension context object when user interaction is complete during the broadcast setup flow.
22
+ */
23
+ @interface NSExtensionContext (RPBroadcastExtension)
24
+
25
+ #if TARGET_OS_OSX
26
+ /*! @abstract Load information about the broadcasting app.
27
+ @param handler block which will be supplied a bundleID, displayName and an optional appIcon.
28
+ */
29
+ - (void)loadBroadcastingApplicationInfoWithCompletion:(void (^)(NSString *bundleID, NSString *displayName, NSImage *__nullable appIcon))handler API_DEPRECATED("No longer supported", macos(11.0, 27.0)) API_UNAVAILABLE(ios, tvos, macCatalyst);
30
+ #else
31
+ /*! @abstract Load information about the broadcasting app.
32
+ @param handler block which will be supplied a bundleID, displayName and an optional appIcon.
33
+ */
34
+ - (void)loadBroadcastingApplicationInfoWithCompletion:(void (^)(NSString *bundleID, NSString *displayName, UIImage *__nullable appIcon))handler API_DEPRECATED("No longer supported", ios(10.0, 27.0), tvos(10.0, 27.0));
35
+ #endif
36
+
37
+ /*! @abstract Method to be called when the extension should finish. Deprecated.
38
+ @param broadcastURL URL that can be used to redirect the user to the ongoing or completed broadcast. This URL is made available to the running application via a property in RPBroadcastController.
39
+ @param broadcastConfiguration Configuration to use for generating movie clips
40
+ @param setupInfo Dictionary that can be used to share any setup information required by the upload extension. The values and keys in this dictionary are to be defined by the extension developer.
41
+ */
42
+ #if !TARGET_OS_OSX
43
+ - (void)completeRequestWithBroadcastURL:(NSURL *)broadcastURL broadcastConfiguration:(RPBroadcastConfiguration *)broadcastConfiguration setupInfo:(nullable NSDictionary <NSString *, NSObject <NSCoding> *> *)setupInfo API_DEPRECATED("No longer supported", ios(10.0, 11.0), tvos(10.0, 11.0)) API_UNAVAILABLE(macos);
44
+
45
+ /*! @abstract Method to be called when the extension should finish.
46
+ @param broadcastURL URL that can be used to redirect the user to the ongoing or completed broadcast. This URL is made available to the running application via a property in RPBroadcastController.
47
+ @param setupInfo Dictionary that can be used to share any setup information required by the upload extension. The values and keys in this dictionary are to be defined by the extension developer.
48
+ */
49
+ #endif
50
+
51
+ - (void)completeRequestWithBroadcastURL:(NSURL *)broadcastURL setupInfo:(nullable NSDictionary <NSString *, NSObject <NSCoding> *> *)setupInfo API_DEPRECATED("No longer supported", ios(11.0, 27.0), tvos(11.0, 27.0), macos(11.0, 27.0));
52
+
53
+ @end
54
+
55
+ /*!
56
+ @class RPBroadcastProcessExtension
57
+ @abstract Base class for extensions that are responsible for handling video and audio data.
58
+ */
59
+ API_DEPRECATED("No longer supported", ios(10.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0))
60
+ PEACH_SWIFT_CLASS(ReplayKit) @interface RPBroadcastHandler : NSObject <NSExtensionRequestHandling>
61
+ /*! @abstract Call this method, supplying it with a dictionary defined by the service, to populate the serviceInfo property on RPBroadcastController. This can be used to communicate viewing stats or messages back to the broadcasting app.
62
+ @param serviceInfo Dictionary that can be passed back to the broadcasting app that may contain information about the ongoing broadcast.
63
+ */
64
+ - (void)updateServiceInfo:(NSDictionary<NSString *, NSObject <NSCoding> *> *)serviceInfo;
65
+
66
+ /*! @abstract Call this method, supplying it with a URL to update the broadcastURL property on RPBroadcastController.
67
+ @param broadcastURL URL of the resource where broadcast can be viewed which will be passed to the broadcasting app.
68
+ */
69
+ - (void)updateBroadcastURL:(NSURL *)broadcastURL API_AVAILABLE(ios(11.0), tvos(11.0), macos(11.0));
70
+ @end
71
+
72
+ #if !TARGET_OS_OSX
73
+ /*!
74
+ @class RPBroadcastMP4ClipHandler
75
+ @abstract Subclass this class to handle movie clips as they are recorded by ReplayKit during the broadcast flow. ReplayKit will call processMP4ClipWithURL when a movie clip is available for processing.
76
+ */
77
+ API_DEPRECATED("No longer supported", ios(10.0, 11.0), tvos(10.0, 11.0)) API_UNAVAILABLE(macos)
78
+ PEACH_SWIFT_CLASS(ReplayKit) @interface RPBroadcastMP4ClipHandler : RPBroadcastHandler
79
+ /*! @abstract Method which ReplayKit will call when an MP4 movie clip is ready for processing.
80
+ @param mp4ClipURL URL that points to the location of the movie clip recorded by ReplayKit. Note that the URL may be nil in certain cases such as an error.
81
+ @param setupInfo Dictionary supplied by the UI extension that may contain setup information required for processing. The values in this dictionary are to be defined by the extension developer.
82
+ @param finished Boolean indicating that application requested the broadcast to end.
83
+ */
84
+ - (void)processMP4ClipWithURL:(nullable NSURL *)mp4ClipURL setupInfo:(nullable NSDictionary <NSString *, NSObject *> *)setupInfo finished:(BOOL)finished;
85
+
86
+ /*! @abstract Method that should be called when processing is complete.
87
+ @param broadcastConfiguration Optional updated configuration that will be applied to the next MP4 clip.
88
+ @param error Optional error to communicate to ReplayKit and the host application that there was an issue with the broadcast and to stop broadcasting. Note that once this is called, regardles of the existence of an error, the current MP4 clip will no longer be available.
89
+ */
90
+ - (void)finishedProcessingMP4ClipWithUpdatedBroadcastConfiguration:(nullable RPBroadcastConfiguration *)broadcastConfiguration error:(nullable NSError *)error;
91
+ @end
92
+ #endif // !TARGET_OS_OSX
93
+
94
+ API_DEPRECATED("Use SCStreamOutputType instead", ios(10.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0))
95
+ typedef NS_ENUM (NSInteger, RPSampleBufferType) {
96
+ RPSampleBufferTypeVideo = 1,
97
+ RPSampleBufferTypeAudioApp,
98
+ RPSampleBufferTypeAudioMic,
99
+ };
100
+
101
+ /*!
102
+ @key RPVideoSampleOrientationKey
103
+ @abstract Use this key in conjunction with CMGetAttachment on CMSampleBufferRef to get the orientation for the sample. The orientation will follow the enum CGImagePropertyOrientation
104
+ */
105
+ API_DEPRECATED("No longer supported", ios(11.0, 27.0), tvos(11.0, 27.0), macos(11.0, 27.0))
106
+ extern NSString * const RPVideoSampleOrientationKey;
107
+
108
+ /*!
109
+ @key RPApplicationInfoBundleIdentifierKey
110
+ @abstract Use this key to retrieve bundle identifier from dictionary provided by broadcastAnnotatedWithApplicationInfo
111
+ */
112
+ API_DEPRECATED("No longer supported", ios(11.2, 27.0), macos(11.0, 27.0))
113
+ API_UNAVAILABLE(tvos)
114
+ extern NSString * const RPApplicationInfoBundleIdentifierKey;
115
+
116
+ /*!
117
+ @class RPBroadcastSampleHandler
118
+ @abstract Subclass this class to handle CMSampleBuffer objects as they are captured by ReplayKit. To enable this mode of handling, set the RPBroadcastProcessMode in the extension's info.plist to RPBroadcastProcessModeSampleBuffer.
119
+ */
120
+ API_DEPRECATED("No longer supported", ios(10.0, 27.0), tvos(10.0, 27.0), macos(11.0, 27.0))
121
+ PEACH_SWIFT_CLASS(ReplayKit) @interface RPBroadcastSampleHandler : RPBroadcastHandler
122
+
123
+ /*! @abstract Method is called when the RPBroadcastController startBroadcast method is called from the broadcasting application.
124
+ @param setupInfo Dictionary that can be supplied by the UI extension to the sample handler.
125
+ */
126
+ - (void)broadcastStartedWithSetupInfo:(nullable NSDictionary <NSString *, NSObject *> *)setupInfo;
127
+
128
+ /*! @abstract Method is called when the RPBroadcastController pauseBroadcast method is called from the broadcasting application. */
129
+ - (void)broadcastPaused;
130
+
131
+ /*! @abstract Method is called when the RPBroadcastController resumeBroadcast method is called from the broadcasting application. */
132
+ - (void)broadcastResumed;
133
+
134
+ /*! @abstract Method is called when the RPBroadcastController finishBroadcast method is called from the broadcasting application. */
135
+ - (void)broadcastFinished;
136
+
137
+ /*! @abstract Method is called when broadcast is started from Control Center and provides extension information about the first application opened or used during the broadcast.
138
+ @param applicationInfo Dictionary that contains information about the first application opened or used buring the broadcast.
139
+ */
140
+ - (void)broadcastAnnotatedWithApplicationInfo:(NSDictionary *)applicationInfo API_AVAILABLE(ios(11.2)) API_UNAVAILABLE(tvos);
141
+
142
+ /*! @abstract Method is called as video and audio data become available during a broadcast session and is delivered as CMSampleBuffer objects.
143
+ @param sampleBuffer CMSampleBuffer object which contains either video or audio data.
144
+ @param sampleBufferType Determine's the type of the sample buffer defined by the RPSampleBufferType enum.
145
+ */
146
+ - (void)processSampleBuffer:(CMSampleBufferRef)sampleBuffer withType:(RPSampleBufferType)sampleBufferType;
147
+
148
+ /*! @abstract Method that should be called when broadcasting can not proceed due to an error. Calling this method will stop the broadcast and deliver the error back to the broadcasting app through RPBroadcastController's delegate.
149
+ @param error NSError object that will be passed back to the broadcasting app through RPBroadcastControllerDelegate's broadcastController:didFinishWithError: method.
150
+ */
151
+ - (void)finishBroadcastWithError:(NSError *)error;
152
+
153
+ @end
154
+ NS_ASSUME_NONNULL_END