react-native-attachment-kit 1.0.2 → 1.0.6

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 (147) hide show
  1. package/CHANGELOG.md +121 -0
  2. package/README.md +446 -206
  3. package/android/build.gradle +17 -0
  4. package/android/src/main/libs/rnattachmentkit-release.aar +0 -0
  5. package/android/src/newarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +587 -22
  6. package/android/src/oldarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +592 -21
  7. package/ios/RNAttachmentKit.m +62 -0
  8. package/ios/RNAttachmentKit.swift +725 -29
  9. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Assets.car +0 -0
  10. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Headers/RNAttachmentKit-Swift.h +51 -5
  11. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Info.plist +0 -0
  12. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.abi.json +51876 -18835
  13. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface +310 -5
  14. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  15. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftinterface +310 -5
  16. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/RNAttachmentKit +0 -0
  17. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_crop_reflect~dark.webp +0 -0
  18. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_crop_reflect~light.webp +0 -0
  19. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_crop_rotate~dark.webp +0 -0
  20. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_crop_rotate~light.webp +0 -0
  21. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_delete~dark.webp +0 -0
  22. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_delete~light.webp +0 -0
  23. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_forward~dark.webp +0 -0
  24. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_forward~light.webp +0 -0
  25. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_reward~dark.webp +0 -0
  26. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_reward~light.webp +0 -0
  27. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_back~dark.webp +0 -0
  28. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_back~light.webp +0 -0
  29. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_blur~dark.webp +0 -0
  30. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_blur~light.webp +0 -0
  31. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_check_small~dark.webp +0 -0
  32. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_check_small~light.webp +0 -0
  33. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_check~dark.webp +0 -0
  34. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_check~light.webp +0 -0
  35. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_close~dark.webp +0 -0
  36. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_close~light.webp +0 -0
  37. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_crop~dark.webp +0 -0
  38. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_crop~light.webp +0 -0
  39. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_drawing~dark.webp +0 -0
  40. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_drawing~light.webp +0 -0
  41. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_effect~dark.webp +0 -0
  42. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_effect~light.webp +0 -0
  43. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_emoji~dark.webp +0 -0
  44. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_emoji~light.webp +0 -0
  45. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_eraser~dark.webp +0 -0
  46. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_eraser~light.webp +0 -0
  47. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_mosaic~dark.webp +0 -0
  48. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_mosaic~light.webp +0 -0
  49. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_text~dark.webp +0 -0
  50. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_text~light.webp +0 -0
  51. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_text_add~dark.webp +0 -0
  52. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_text_add~light.webp +0 -0
  53. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
  54. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeResources +195 -63
  55. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeSignature +0 -0
  56. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Assets.car +0 -0
  57. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Headers/RNAttachmentKit-Swift.h +102 -10
  58. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Info.plist +0 -0
  59. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.abi.json +51876 -18835
  60. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +310 -5
  61. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  62. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +310 -5
  63. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +51876 -18835
  64. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +310 -5
  65. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  66. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +310 -5
  67. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/RNAttachmentKit +0 -0
  68. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_crop_reflect~dark.webp +0 -0
  69. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_crop_reflect~light.webp +0 -0
  70. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_crop_rotate~dark.webp +0 -0
  71. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_crop_rotate~light.webp +0 -0
  72. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_delete~dark.webp +0 -0
  73. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_delete~light.webp +0 -0
  74. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_forward~dark.webp +0 -0
  75. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_forward~light.webp +0 -0
  76. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_reward~dark.webp +0 -0
  77. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_reward~light.webp +0 -0
  78. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_back~dark.webp +0 -0
  79. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_back~light.webp +0 -0
  80. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_blur~dark.webp +0 -0
  81. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_blur~light.webp +0 -0
  82. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_check_small~dark.webp +0 -0
  83. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_check_small~light.webp +0 -0
  84. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_check~dark.webp +0 -0
  85. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_check~light.webp +0 -0
  86. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_close~dark.webp +0 -0
  87. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_close~light.webp +0 -0
  88. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_crop~dark.webp +0 -0
  89. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_crop~light.webp +0 -0
  90. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_drawing~dark.webp +0 -0
  91. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_drawing~light.webp +0 -0
  92. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_effect~dark.webp +0 -0
  93. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_effect~light.webp +0 -0
  94. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_emoji~dark.webp +0 -0
  95. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_emoji~light.webp +0 -0
  96. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_eraser~dark.webp +0 -0
  97. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_eraser~light.webp +0 -0
  98. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_mosaic~dark.webp +0 -0
  99. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_mosaic~light.webp +0 -0
  100. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_text~dark.webp +0 -0
  101. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_text~light.webp +0 -0
  102. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_text_add~dark.webp +0 -0
  103. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_text_add~light.webp +0 -0
  104. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
  105. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeResources +205 -73
  106. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_crop_reflect~dark.webp +0 -0
  107. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_crop_reflect~light.webp +0 -0
  108. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_crop_rotate~dark.webp +0 -0
  109. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_crop_rotate~light.webp +0 -0
  110. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_delete~dark.webp +0 -0
  111. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_delete~light.webp +0 -0
  112. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_forward~dark.webp +0 -0
  113. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_forward~light.webp +0 -0
  114. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_reward~dark.webp +0 -0
  115. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_reward~light.webp +0 -0
  116. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_back~dark.webp +0 -0
  117. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_back~light.webp +0 -0
  118. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_blur~dark.webp +0 -0
  119. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_blur~light.webp +0 -0
  120. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_check_small~dark.webp +0 -0
  121. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_check_small~light.webp +0 -0
  122. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_check~dark.webp +0 -0
  123. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_check~light.webp +0 -0
  124. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_close~dark.webp +0 -0
  125. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_close~light.webp +0 -0
  126. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_crop~dark.webp +0 -0
  127. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_crop~light.webp +0 -0
  128. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_drawing~dark.webp +0 -0
  129. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_drawing~light.webp +0 -0
  130. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_effect~dark.webp +0 -0
  131. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_effect~light.webp +0 -0
  132. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_emoji~dark.webp +0 -0
  133. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_emoji~light.webp +0 -0
  134. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_eraser~dark.webp +0 -0
  135. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_eraser~light.webp +0 -0
  136. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_mosaic~dark.webp +0 -0
  137. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_mosaic~light.webp +0 -0
  138. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_text~dark.webp +0 -0
  139. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_text~light.webp +0 -0
  140. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_text_add~dark.webp +0 -0
  141. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_text_add~light.webp +0 -0
  142. package/package.json +1 -1
  143. package/react-native-attachment-kit.podspec +1 -1
  144. package/src/NativeAttachmentKit.ts +15 -0
  145. package/src/index.d.ts +5 -56
  146. package/src/index.ts +301 -37
  147. package/src/types.ts +380 -11
@@ -5,6 +5,7 @@
5
5
  import AVFoundation
6
6
  import CoreImage
7
7
  import CoreLocation
8
+ import CoreMotion
8
9
  import CoreText
9
10
  import CryptoKit
10
11
  import DeveloperToolsSupport
@@ -16,6 +17,8 @@ import Swift
16
17
  import SwiftUI
17
18
  import UIKit
18
19
  import UniformTypeIdentifiers
20
+ import VideoToolbox
21
+ import Vision
19
22
  import _Concurrency
20
23
  import _StringProcessing
21
24
  import _SwiftConcurrencyShims
@@ -43,7 +46,13 @@ import _SwiftConcurrencyShims
43
46
  get
44
47
  }
45
48
  @_Concurrency.MainActor @preconcurrency public var onLocationSelected: ((RNAttachmentKit.AttachLocationResult) -> Swift.Void)?
49
+ @_Concurrency.MainActor @preconcurrency public var capturesLocationImage: Swift.Bool
50
+ @_Concurrency.MainActor @preconcurrency public var mediaType: Swift.String
51
+ @_Concurrency.MainActor @preconcurrency public var maxVideoDurationSec: Swift.Double
52
+ @_Concurrency.MainActor @preconcurrency public var videoExportOptions: RNAttachmentKit.VideoExportOptions
53
+ @_Concurrency.MainActor @preconcurrency public func releaseAfterReturn(discardPreparedVideos: Swift.Bool = true)
46
54
  @_Concurrency.MainActor @preconcurrency public var onFilesSelected: (([RNAttachmentKit.AttachFileResult]) -> Swift.Void)?
55
+ @_Concurrency.MainActor @preconcurrency public var onFilesSelectedWithFailures: (([RNAttachmentKit.AttachFileResult], [RNAttachmentKit.AttachFileFailure]) -> Swift.Void)?
47
56
  @_Concurrency.MainActor @preconcurrency public var allowsMultipleFiles: Swift.Bool
48
57
  @_Concurrency.MainActor @preconcurrency @objc dynamic public init()
49
58
  @_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
@@ -68,6 +77,7 @@ import _SwiftConcurrencyShims
68
77
  @_Concurrency.MainActor @preconcurrency final public let galleryID: Swift.String
69
78
  @_Concurrency.MainActor @preconcurrency public var selectedAssets: [Photos.PHAsset]
70
79
  @_Concurrency.MainActor @preconcurrency public var editedImages: [Swift.String : UIKit.UIImage]
80
+ @_Concurrency.MainActor @preconcurrency public var videoEditStates: [Swift.String : RNAttachmentKit.VideoEditState]
71
81
  @_Concurrency.MainActor @preconcurrency public var selectedAssetsSet: Swift.Set<Swift.String>
72
82
  @_Concurrency.MainActor @preconcurrency public var hiddenAssetId: Swift.String?
73
83
  @_Concurrency.MainActor @preconcurrency public var collectionView: UIKit.UICollectionView {
@@ -114,6 +124,7 @@ public enum AttachMenuTab : Swift.String, Swift.CaseIterable {
114
124
  case gallery
115
125
  case location
116
126
  case file
127
+ case aiWorks
117
128
  public init?(rawValue: Swift.String)
118
129
  public typealias AllCases = [RNAttachmentKit.AttachMenuTab]
119
130
  public typealias RawValue = Swift.String
@@ -146,7 +157,9 @@ public enum AttachMenuTab : Swift.String, Swift.CaseIterable {
146
157
  @_Concurrency.MainActor @preconcurrency final public var selectedTab: RNAttachmentKit.AttachMenuTab {
147
158
  get
148
159
  }
149
- @_Concurrency.MainActor @preconcurrency final public let tabs: [RNAttachmentKit.AttachMenuTab]
160
+ @_Concurrency.MainActor @preconcurrency final public var tabs: [RNAttachmentKit.AttachMenuTab] {
161
+ get
162
+ }
150
163
  @_Concurrency.MainActor @preconcurrency final public var blurIntensity: CoreFoundation.CGFloat {
151
164
  get
152
165
  set
@@ -155,8 +168,9 @@ public enum AttachMenuTab : Swift.String, Swift.CaseIterable {
155
168
  get
156
169
  set
157
170
  }
158
- @_Concurrency.MainActor @preconcurrency public init(tabs: [RNAttachmentKit.AttachMenuTab] = AttachMenuTab.allCases, selected: RNAttachmentKit.AttachMenuTab = .gallery, languageCode: Swift.String, accentColor: UIKit.UIColor)
171
+ @_Concurrency.MainActor @preconcurrency public init(tabs: [RNAttachmentKit.AttachMenuTab] = [.gallery, .location, .file], selected: RNAttachmentKit.AttachMenuTab = .gallery, languageCode: Swift.String, accentColor: UIKit.UIColor)
159
172
  @objc deinit
173
+ @_Concurrency.MainActor @preconcurrency final public func setTabs(_ newTabs: [RNAttachmentKit.AttachMenuTab])
160
174
  @_Concurrency.MainActor @preconcurrency @objc override final public func didMoveToWindow()
161
175
  @_Concurrency.MainActor @preconcurrency final public func prepareNativeAppearance()
162
176
  @_Concurrency.MainActor @preconcurrency @objc override final public func layoutSubviews()
@@ -184,6 +198,17 @@ public struct AttachLocationResult {
184
198
  public let title: Swift.String?
185
199
  public let address: Swift.String?
186
200
  public let isCurrentLocation: Swift.Bool
201
+ public var imageUri: Swift.String?
202
+ public var imagePath: Swift.String?
203
+ public var imageWidth: Swift.Int?
204
+ public var imageHeight: Swift.Int?
205
+ public var currentLatitude: Swift.Double?
206
+ public var currentLongitude: Swift.Double?
207
+ public var currentAccuracy: Swift.Double?
208
+ public var includesMyLocation: Swift.Bool
209
+ public var markerType: Swift.String
210
+ public var placeCategory: Swift.String?
211
+ public var imageSpanMeters: Swift.Double?
187
212
  public var dictionary: [Swift.String : Any] {
188
213
  get
189
214
  }
@@ -197,6 +222,16 @@ public struct AttachFileResult {
197
222
  get
198
223
  }
199
224
  }
225
+ public struct AttachFileFailure {
226
+ public let name: Swift.String
227
+ public let error: Swift.String
228
+ public var dictionary: [Swift.String : Any] {
229
+ get
230
+ }
231
+ }
232
+ public enum TempFileCleaner {
233
+ public static func cleanupStaleTempFiles(now: Foundation.Date = Date())
234
+ }
200
235
  public struct FilterState {
201
236
  public var filterId: Swift.String
202
237
  public var intensity: CoreFoundation.CGFloat
@@ -221,6 +256,9 @@ public struct FilterState {
221
256
  @_Concurrency.MainActor @preconcurrency public var onConfirmMulti: (([Photos.PHAsset], [Photos.PHAsset : UIKit.UIImage], [Photos.PHAsset : RNAttachmentKit.FilterState]) -> Swift.Void)?
222
257
  @_Concurrency.MainActor @preconcurrency public var onSendMulti: (([Photos.PHAsset], [Photos.PHAsset : UIKit.UIImage], [Photos.PHAsset : RNAttachmentKit.FilterState]) -> Swift.Void)?
223
258
  @_Concurrency.MainActor @preconcurrency public var onCancel: (() -> Swift.Void)?
259
+ @_Concurrency.MainActor @preconcurrency public var videoEditStates: [Swift.Int : RNAttachmentKit.VideoEditState]
260
+ @_Concurrency.MainActor @preconcurrency public var videoOptions: RNAttachmentKit.VideoExportOptions
261
+ @_Concurrency.MainActor @preconcurrency public var onVideoStateChanged: ((Photos.PHAsset, RNAttachmentKit.VideoEditState) -> Swift.Void)?
224
262
  @_Concurrency.MainActor @preconcurrency public var themeColor: UIKit.UIColor?
225
263
  @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
226
264
  @_Concurrency.MainActor @preconcurrency @objc override dynamic public func traitCollectionDidChange(_ previousTraitCollection: UIKit.UITraitCollection?)
@@ -263,6 +301,7 @@ public struct Album {
263
301
  }
264
302
  @_hasMissingDesignatedInitializers public class PhotoManager {
265
303
  public var languageCode: Swift.String
304
+ public var mediaType: Swift.String
266
305
  public static let shared: RNAttachmentKit.PhotoManager
267
306
  public func resetCachingManager()
268
307
  public func fetchAlbums(completion: @escaping ([RNAttachmentKit.Album]) -> Swift.Void)
@@ -358,12 +397,14 @@ extension RNAttachmentKit.GalleryBaseViewController : UIKit.UIAdaptivePresentati
358
397
  public func hasCache(for url: Swift.String) -> Swift.Bool
359
398
  public func getMemoryImage(for url: Swift.String) -> UIKit.UIImage?
360
399
  public func getDiskImageSynchronously(for url: Swift.String) -> UIKit.UIImage?
400
+ @objc deinit
361
401
  public func setMemoryImage(_ image: UIKit.UIImage, for url: Swift.String)
362
402
  public func saveImage(_ image: UIKit.UIImage, for url: Swift.String)
363
- @objc deinit
364
403
  }
365
404
  @objc @_hasMissingDesignatedInitializers @_Concurrency.MainActor @preconcurrency public class RemoteImageViewerViewController : UIKit.UIViewController {
405
+ @objc deinit
366
406
  @_Concurrency.MainActor @preconcurrency public var onPageChanged: ((Swift.Int) -> Swift.Void)?
407
+ @_Concurrency.MainActor @preconcurrency public var videos: [RNAttachmentKit.ViewerVideoItem?]
367
408
  @_Concurrency.MainActor @preconcurrency public var prefersPlaceholderThumbnails: Swift.Bool
368
409
  @_Concurrency.MainActor @preconcurrency public var hasMoreItems: Swift.Bool {
369
410
  get
@@ -398,13 +439,24 @@ extension RNAttachmentKit.GalleryBaseViewController : UIKit.UIAdaptivePresentati
398
439
  @_Concurrency.MainActor @preconcurrency public var deleteOptions: [RNAttachmentKit.RemoteImageViewerViewController.DeleteOption]
399
440
  @_Concurrency.MainActor @preconcurrency public var onImageDeleted: ((Swift.Int, Swift.String, Swift.String?) -> Swift.Void)?
400
441
  @_Concurrency.MainActor @preconcurrency public var onWillDismissForDelete: (() -> Swift.Void)?
401
- @_Concurrency.MainActor @preconcurrency public func appendImages(urls: [Swift.String], placeholders: [Swift.String]?, cacheFiles newCacheFiles: [Swift.String]?)
442
+ @_Concurrency.MainActor @preconcurrency public func appendImages(urls: [Swift.String], placeholders: [Swift.String]?, cacheFiles newCacheFiles: [Swift.String]?, videos newVideos: [RNAttachmentKit.ViewerVideoItem?]? = nil)
402
443
  @_Concurrency.MainActor @preconcurrency public static func isImageCached(for urlString: Swift.String) -> Swift.Bool
403
444
  @_Concurrency.MainActor @preconcurrency public static func prefetchImage(from urlString: Swift.String, completion: @escaping (UIKit.UIImage?) -> Swift.Void)
404
445
  @_Concurrency.MainActor @preconcurrency public init(imageUrls: [Swift.String], initialIndex: Swift.Int)
405
446
  @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
447
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidAppear(_ animated: Swift.Bool)
448
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewWillDisappear(_ animated: Swift.Bool)
449
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public var prefersStatusBarHidden: Swift.Bool {
450
+ @objc get
451
+ }
452
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public var preferredStatusBarUpdateAnimation: UIKit.UIStatusBarAnimation {
453
+ @objc get
454
+ }
455
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public var prefersHomeIndicatorAutoHidden: Swift.Bool {
456
+ @objc get
457
+ }
458
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidDisappear(_ animated: Swift.Bool)
406
459
  @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLayoutSubviews()
407
- @objc deinit
408
460
  }
409
461
  extension RNAttachmentKit.RemoteImageViewerViewController : UIKit.UIGestureRecognizerDelegate {
410
462
  @_Concurrency.MainActor @preconcurrency @objc dynamic public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIKit.UIGestureRecognizer) -> Swift.Bool
@@ -412,6 +464,7 @@ extension RNAttachmentKit.RemoteImageViewerViewController : UIKit.UIGestureRecog
412
464
  }
413
465
  extension RNAttachmentKit.RemoteImageViewerViewController : UIKit.UIScrollViewDelegate {
414
466
  @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidScroll(_ scrollView: UIKit.UIScrollView)
467
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidEndDragging(_ scrollView: UIKit.UIScrollView, willDecelerate decelerate: Swift.Bool)
415
468
  @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidEndDecelerating(_ scrollView: UIKit.UIScrollView)
416
469
  }
417
470
  extension RNAttachmentKit.RemoteImageViewerViewController : UIKit.UICollectionViewDataSource, UIKit.UICollectionViewDelegate {
@@ -419,6 +472,9 @@ extension RNAttachmentKit.RemoteImageViewerViewController : UIKit.UICollectionVi
419
472
  @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, cellForItemAt indexPath: Foundation.IndexPath) -> UIKit.UICollectionViewCell
420
473
  @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, didSelectItemAt indexPath: Foundation.IndexPath)
421
474
  }
475
+ extension RNAttachmentKit.RemoteImageViewerViewController {
476
+ @_Concurrency.MainActor @preconcurrency public func videoCloseSnapshot(in container: UIKit.UIView) -> (image: UIKit.UIImage, frame: CoreFoundation.CGRect)?
477
+ }
422
478
  public struct Localizer {
423
479
  public static let supportedLanguageCodes: [Swift.String]
424
480
  public static func normalize(_ languageCode: Swift.String) -> Swift.String
@@ -434,6 +490,15 @@ public struct MediaGalleryItem {
434
490
  public let isMine: Swift.Bool
435
491
  public let width: Swift.Int?
436
492
  public let height: Swift.Int?
493
+ public var videoUri: Swift.String?
494
+ public var videoCacheFile: Swift.String?
495
+ public var duration: Swift.Double?
496
+ public var isVideo: Swift.Bool {
497
+ get
498
+ }
499
+ public var viewerVideo: RNAttachmentKit.ViewerVideoItem? {
500
+ get
501
+ }
437
502
  public init(id: Swift.String, groupId: Swift.String, timestamp: Swift.Double, thumbUri: Swift.String?, imageUri: Swift.String, cacheFile: Swift.String? = nil, isMine: Swift.Bool = false, width: Swift.Int? = nil, height: Swift.Int? = nil)
438
503
  public init?(dictionary d: [Swift.String : Any])
439
504
  public func toDictionary() -> [Swift.String : Any]
@@ -599,6 +664,7 @@ extension RNAttachmentKit.MediaGalleryViewController : UIKit.UICollectionViewDat
599
664
  @_Concurrency.MainActor @preconcurrency public var disablePresentationAnimation: Swift.Bool
600
665
  @_Concurrency.MainActor @preconcurrency public var onCurrentAssetChanged: ((Photos.PHAsset) -> Swift.Void)?
601
666
  @_Concurrency.MainActor @preconcurrency public var onEditorClosed: (() -> Swift.Void)?
667
+ @_Concurrency.MainActor @preconcurrency public var onPresentationStarted: (() -> Swift.Void)?
602
668
  @_Concurrency.MainActor @preconcurrency public var openDuration: Swift.Double
603
669
  @_Concurrency.MainActor @preconcurrency public var closeDuration: Swift.Double
604
670
  @_Concurrency.MainActor @preconcurrency @objc override dynamic public init()
@@ -625,8 +691,247 @@ extension RNAttachmentKit.MediaGalleryViewController : UIKit.UICollectionViewDat
625
691
  @_Concurrency.MainActor @preconcurrency @objc override dynamic public init()
626
692
  @objc deinit
627
693
  }
694
+ @objc @_hasMissingDesignatedInitializers @_Concurrency.MainActor @preconcurrency final public class MapViewerViewController : UIKit.UIViewController {
695
+ @_Concurrency.MainActor @preconcurrency final public let coordinate: _LocationEssentials.CLLocationCoordinate2D
696
+ @_Concurrency.MainActor @preconcurrency final public let placeTitle: Swift.String?
697
+ @_Concurrency.MainActor @preconcurrency final public var address: Swift.String? {
698
+ get
699
+ }
700
+ @_Concurrency.MainActor @preconcurrency final public let markerType: Swift.String?
701
+ @_Concurrency.MainActor @preconcurrency final public let placeCategory: Swift.String?
702
+ @_Concurrency.MainActor @preconcurrency final public let accentColor: UIKit.UIColor
703
+ @_Concurrency.MainActor @preconcurrency final public let languageCode: Swift.String
704
+ @_Concurrency.MainActor @preconcurrency final public var onClosed: (() -> Swift.Void)?
705
+ @_Concurrency.MainActor @preconcurrency final public var onWillClose: ((Foundation.TimeInterval) -> Swift.Void)?
706
+ @_Concurrency.MainActor @preconcurrency final public var showsDirections: Swift.Bool
707
+ @_Concurrency.MainActor @preconcurrency final public var spanMeters: Swift.Double?
708
+ @_Concurrency.MainActor @preconcurrency final public var sourceRect: CoreFoundation.CGRect?
709
+ @_Concurrency.MainActor @preconcurrency final public var sourceImage: UIKit.UIImage?
710
+ @_Concurrency.MainActor @preconcurrency final public var sourceImageIsMarkerless: Swift.Bool
711
+ @_Concurrency.MainActor @preconcurrency final public var sourceCornerRadius: CoreFoundation.CGFloat
712
+ @_Concurrency.MainActor @preconcurrency final public var sourceRectProvider: (() -> CoreFoundation.CGRect?)?
713
+ @_Concurrency.MainActor @preconcurrency final public var addressLanguageCode: Swift.String?
714
+ @_Concurrency.MainActor @preconcurrency public init(latitude: Swift.Double, longitude: Swift.Double, title: Swift.String? = nil, address: Swift.String? = nil, markerType: Swift.String? = nil, placeCategory: Swift.String? = nil, accentColor: UIKit.UIColor = UIColor(red: 1, green: 0.42, blue: 0.21, alpha: 1), languageCode: Swift.String = "en")
715
+ @_Concurrency.MainActor @preconcurrency @objc override final public func viewDidLoad()
716
+ @_Concurrency.MainActor @preconcurrency @objc override final public func viewDidLayoutSubviews()
717
+ @_Concurrency.MainActor @preconcurrency @objc override final public var preferredStatusBarStyle: UIKit.UIStatusBarStyle {
718
+ @objc get
719
+ }
720
+ @_Concurrency.MainActor @preconcurrency @objc override final public func viewWillAppear(_ animated: Swift.Bool)
721
+ @_Concurrency.MainActor @preconcurrency @objc override final public func viewDidAppear(_ animated: Swift.Bool)
722
+ @objc deinit
723
+ }
724
+ extension RNAttachmentKit.MapViewerViewController : MapKit.MKMapViewDelegate {
725
+ @_Concurrency.MainActor @preconcurrency @objc final public func mapViewDidFinishRenderingMap(_ mapView: MapKit.MKMapView, fullyRendered: Swift.Bool)
726
+ @_Concurrency.MainActor @preconcurrency @objc final public func mapView(_ mapView: MapKit.MKMapView, viewFor annotation: any MapKit.MKAnnotation) -> MapKit.MKAnnotationView?
727
+ @_Concurrency.MainActor @preconcurrency @objc final public func mapView(_ mapView: MapKit.MKMapView, didSelect view: MapKit.MKAnnotationView)
728
+ }
729
+ extension RNAttachmentKit.MapViewerViewController : CoreLocation.CLLocationManagerDelegate {
730
+ @_Concurrency.MainActor @preconcurrency @objc final public func locationManagerDidChangeAuthorization(_ manager: CoreLocation.CLLocationManager)
731
+ @_Concurrency.MainActor @preconcurrency @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, didUpdateLocations locations: [_LocationEssentials.CLLocation])
732
+ @_Concurrency.MainActor @preconcurrency @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, didFailWithError error: any Swift.Error)
733
+ }
734
+ public struct LocationThumbnailRequest {
735
+ public var latitude: Swift.Double
736
+ public var longitude: Swift.Double
737
+ public var size: CoreFoundation.CGSize
738
+ public var scale: CoreFoundation.CGFloat
739
+ public var isDark: Swift.Bool
740
+ public var markerType: Swift.String?
741
+ public var placeCategory: Swift.String?
742
+ public var spanMeters: Swift.Double?
743
+ public var accentColor: UIKit.UIColor
744
+ public var myLocation: _LocationEssentials.CLLocationCoordinate2D?
745
+ public var maxPixelWidth: CoreFoundation.CGFloat
746
+ public var maxPixelHeight: CoreFoundation.CGFloat
747
+ public init(latitude: Swift.Double, longitude: Swift.Double, size: CoreFoundation.CGSize, scale: CoreFoundation.CGFloat, isDark: Swift.Bool, markerType: Swift.String?, placeCategory: Swift.String?, spanMeters: Swift.Double?, accentColor: UIKit.UIColor, myLocation: _LocationEssentials.CLLocationCoordinate2D?)
748
+ }
749
+ public enum LocationThumbnailError : Swift.Error {
750
+ case failed(Swift.String)
751
+ }
752
+ public enum LocationThumbnailRenderer {
753
+ public typealias Completion = (Swift.Result<[Swift.String : Any], any Swift.Error>) -> Swift.Void
754
+ public static let defaultMaxPixel: CoreFoundation.CGFloat
755
+ public static let markerWidthFraction: CoreFoundation.CGFloat
756
+ public static func markerlessFile(for path: Swift.String) -> Swift.String?
757
+ public static func render(_ req: RNAttachmentKit.LocationThumbnailRequest, completion: @escaping RNAttachmentKit.LocationThumbnailRenderer.Completion)
758
+ public static func height(forWidth w: CoreFoundation.CGFloat, aspect: Swift.String?) -> CoreFoundation.CGFloat?
759
+ public static func clearCache()
760
+ }
761
+ public struct ReverseGeocodeResult {
762
+ public let address: Swift.String?
763
+ public let shortAddress: Swift.String?
764
+ public let cached: Swift.Bool
765
+ public var dictionary: [Swift.String : Any] {
766
+ get
767
+ }
768
+ }
769
+ public struct ReverseGeocodeError : Swift.Error {
770
+ public let code: Swift.String
771
+ public let message: Swift.String
772
+ }
773
+ @_hasMissingDesignatedInitializers final public class ReverseGeocoder {
774
+ public static let shared: RNAttachmentKit.ReverseGeocoder
775
+ public static let maxEntries: Swift.Int
776
+ public static let trimTo: Swift.Int
777
+ public static let timeout: Swift.Double
778
+ public typealias Completion = (Swift.Result<RNAttachmentKit.ReverseGeocodeResult, RNAttachmentKit.ReverseGeocodeError>) -> Swift.Void
779
+ public static var cacheDirectory: Foundation.URL {
780
+ get
781
+ }
782
+ public static func cacheKey(latitude: Swift.Double, longitude: Swift.Double, languageCode: Swift.String) -> Swift.String
783
+ final public func reverseGeocode(latitude: Swift.Double, longitude: Swift.Double, languageCode: Swift.String, completion: @escaping RNAttachmentKit.ReverseGeocoder.Completion)
784
+ final public func address(latitude: Swift.Double, longitude: Swift.Double, languageCode: Swift.String, completion: @escaping (Swift.String?) -> Swift.Void)
785
+ final public func clearCache(completion: (() -> Swift.Void)? = nil)
786
+ @objc deinit
787
+ }
788
+ @_hasMissingDesignatedInitializers final public class AIGemini {
789
+ public static var endpoint: Swift.String?
790
+ public static var extraHeaders: [Swift.String : Swift.String]
791
+ public static var apiKey: Swift.String?
792
+ public static var model: Swift.String
793
+ public static var analysisModel: Swift.String
794
+ public static var imageSize: Swift.String
795
+ public static var qualityGuard: Swift.String
796
+ public static var isConfigured: Swift.Bool {
797
+ get
798
+ }
799
+ @objc deinit
800
+ }
801
+ @_hasMissingDesignatedInitializers final public class AIBilling {
802
+ public static var enabled: Swift.Bool
803
+ public static var points: Swift.Int
804
+ public static var freeCount: Swift.Int
805
+ public static var costPerUse: Swift.Int
806
+ public static var highQualityCost: Swift.Int?
807
+ public static var onUsage: (([Swift.String : Any]) -> Swift.Void)?
808
+ public static var onChargeRequired: (([Swift.String : Any]) -> Swift.Void)?
809
+ public static var isAvailable: Swift.Bool {
810
+ get
811
+ }
812
+ public static func apply(_ config: [Swift.String : Any])
813
+ @objc deinit
814
+ }
815
+ public struct VideoExportOptions {
816
+ public var maxDurationSec: Swift.Double
817
+ public var maxFileSizeMB: Swift.Double
818
+ public var qualities: [Swift.Int]
819
+ public var defaultQuality: Swift.Int
820
+ public var codec: Swift.String
821
+ public var posterFormat: Swift.String
822
+ public init()
823
+ public init(dictionary d: [Swift.String : Any]?)
824
+ }
825
+ public struct VideoEditState : Swift.Equatable, Swift.Hashable {
826
+ public static func defaultQualityHeight(shortSide: Swift.Int, options: RNAttachmentKit.VideoExportOptions) -> Swift.Int
827
+ public static func defaultState(for asset: Photos.PHAsset, options: RNAttachmentKit.VideoExportOptions) -> RNAttachmentKit.VideoEditState
828
+ public var qualityHeight: Swift.Int?
829
+ public var muted: Swift.Bool
830
+ public var trimStart: Swift.Double
831
+ public var trimEnd: Swift.Double
832
+ public var cropRotations: Swift.Int
833
+ public var cropFlipH: Swift.Bool
834
+ public var cropX: Swift.Double
835
+ public var cropY: Swift.Double
836
+ public var cropW: Swift.Double
837
+ public var cropH: Swift.Double
838
+ public var overlayImage: UIKit.UIImage?
839
+ public init(qualityHeight: Swift.Int? = nil)
840
+ public var hasOverlay: Swift.Bool {
841
+ get
842
+ }
843
+ public var cropRect: CoreFoundation.CGRect {
844
+ get
845
+ }
846
+ public var hasCrop: Swift.Bool {
847
+ get
848
+ }
849
+ public func cropGeometry(displaySize d: CoreFoundation.CGSize) -> (edited: CoreFoundation.CGSize, cropped: CoreFoundation.CGSize, transform: CoreFoundation.CGAffineTransform)
850
+ public func croppedAspect(sourceAspect: CoreFoundation.CGFloat) -> CoreFoundation.CGFloat
851
+ public func applyCrop(to image: UIKit.UIImage) -> UIKit.UIImage
852
+ public func applyEdits(to image: UIKit.UIImage) -> UIKit.UIImage
853
+ public func remappedOverlay(from old: RNAttachmentKit.VideoEditState, displaySize: CoreFoundation.CGSize) -> UIKit.UIImage?
854
+ public func trimRange(duration: Swift.Double) -> CoreMedia.CMTimeRange?
855
+ public func outputDuration(sourceDuration: Swift.Double) -> Swift.Double
856
+ public func clamped(maxDuration: Swift.Double, sourceDuration: Swift.Double) -> RNAttachmentKit.VideoEditState
857
+ public static func == (a: RNAttachmentKit.VideoEditState, b: RNAttachmentKit.VideoEditState) -> Swift.Bool
858
+ public func hash(into hasher: inout Swift.Hasher)
859
+ public var hashValue: Swift.Int {
860
+ get
861
+ }
862
+ }
863
+ public struct VideoExportResult {
864
+ public let url: Foundation.URL
865
+ public let thumbnailURL: Foundation.URL?
866
+ public let thumbnailWidth: Swift.Int
867
+ public let thumbnailHeight: Swift.Int
868
+ public let duration: Swift.Double
869
+ public let width: Swift.Int
870
+ public let height: Swift.Int
871
+ public let fileSize: Swift.Int64
872
+ public let bitrate: Swift.Int
873
+ public let codec: Swift.String
874
+ public let passthrough: Swift.Bool
875
+ }
876
+ public enum VideoSendIssue {
877
+ case tooLong
878
+ case tooLarge
879
+ public static func == (a: RNAttachmentKit.VideoSendIssue, b: RNAttachmentKit.VideoSendIssue) -> Swift.Bool
880
+ public func hash(into hasher: inout Swift.Hasher)
881
+ public var hashValue: Swift.Int {
882
+ get
883
+ }
884
+ }
885
+ final public class VideoExporter {
886
+ public static let sizeMargin: Swift.Double
887
+ public static func sendIssue(sourceDuration: Swift.Double, sourceShortSide: CoreFoundation.CGFloat, state: RNAttachmentKit.VideoEditState, options: RNAttachmentKit.VideoExportOptions) -> RNAttachmentKit.VideoSendIssue?
888
+ public static func fittedQuality(_ want: Swift.Int, sourceShortSide: CoreFoundation.CGFloat, outputDuration: Swift.Double, options: RNAttachmentKit.VideoExportOptions) -> Swift.Int
889
+ public enum ExportError : Foundation.LocalizedError {
890
+ case cancelled, noVideoTrack, assetUnavailable, writerFailed(Swift.String), tooLarge
891
+ public var errorDescription: Swift.String? {
892
+ get
893
+ }
894
+ }
895
+ public static func bitrate(forHeight h: Swift.Int, fps: Swift.Double) -> Swift.Int
896
+ public static func estimatedSize(height: Swift.Int, fps: Swift.Double, duration: Swift.Double) -> Swift.Int64
897
+ public static func predictedOutputSize(displaySize d: CoreFoundation.CGSize, state: RNAttachmentKit.VideoEditState, options: RNAttachmentKit.VideoExportOptions, sourceDuration: Swift.Double) -> CoreFoundation.CGSize
898
+ final public var makesThumbnail: Swift.Bool
899
+ public init()
900
+ final public func cancel()
901
+ final public func export(asset: Photos.PHAsset, state: RNAttachmentKit.VideoEditState, options: RNAttachmentKit.VideoExportOptions, outputDir: Foundation.URL, baseName: Swift.String, progress: @escaping (Swift.Double) -> Swift.Void) throws -> RNAttachmentKit.VideoExportResult
902
+ final public func export(fileURL: Foundation.URL, state: RNAttachmentKit.VideoEditState, options: RNAttachmentKit.VideoExportOptions, outputDir: Foundation.URL, baseName: Swift.String, progress: @escaping (Swift.Double) -> Swift.Void) throws -> RNAttachmentKit.VideoExportResult
903
+ public static func encodePoster(_ image: UIKit.UIImage, format: Swift.String, quality: CoreFoundation.CGFloat) -> (data: Foundation.Data, fileExtension: Swift.String)?
904
+ @objc deinit
905
+ }
906
+ @objc @_hasMissingDesignatedInitializers @_Concurrency.MainActor @preconcurrency final public class VideoExportHUD : UIKit.UIView {
907
+ @_Concurrency.MainActor @preconcurrency final public var onCancel: (() -> Swift.Void)?
908
+ @_Concurrency.MainActor @preconcurrency public init(accent: UIKit.UIColor, languageCode: Swift.String)
909
+ @_Concurrency.MainActor @preconcurrency final public func update(progress: Swift.Double, index: Swift.Int, total: Swift.Int)
910
+ @_Concurrency.MainActor @preconcurrency public static func show(accent: UIKit.UIColor, languageCode: Swift.String) -> RNAttachmentKit.VideoExportHUD?
911
+ @_Concurrency.MainActor @preconcurrency final public func dismiss()
912
+ @_Concurrency.MainActor @preconcurrency @objc override final public func layoutSubviews()
913
+ @_Concurrency.MainActor @preconcurrency @objc override final public func willMove(toSuperview newSuperview: UIKit.UIView?)
914
+ @objc deinit
915
+ }
916
+ public struct ViewerVideoItem {
917
+ public var uri: Swift.String
918
+ public var duration: Swift.Double?
919
+ public var cacheFile: Swift.String?
920
+ public init(uri: Swift.String, duration: Swift.Double? = nil, cacheFile: Swift.String? = nil)
921
+ public init?(dictionary d: Any?)
922
+ }
923
+ @_hasMissingDesignatedInitializers final public class VideoPrepareManager {
924
+ public static let shared: RNAttachmentKit.VideoPrepareManager
925
+ final public func prepare(asset: Photos.PHAsset, state: RNAttachmentKit.VideoEditState, options: RNAttachmentKit.VideoExportOptions)
926
+ final public func takeReady(asset: Photos.PHAsset, state: RNAttachmentKit.VideoEditState, progress: ((Swift.Double) -> Swift.Void)? = nil, isCancelled: (() -> Swift.Bool)? = nil) -> RNAttachmentKit.VideoExportResult?
927
+ final public func discard(asset: Photos.PHAsset)
928
+ final public func discardAll()
929
+ @objc deinit
930
+ }
628
931
  extension RNAttachmentKit.AttachMenuTab : Swift.Equatable {}
629
932
  extension RNAttachmentKit.AttachMenuTab : Swift.Hashable {}
630
933
  extension RNAttachmentKit.AttachMenuTab : Swift.RawRepresentable {}
631
934
  extension RNAttachmentKit.ImageEditorTransitionDelegate : Swift.Sendable {}
632
935
  extension RNAttachmentKit.ZoomTransitionAnimator : Swift.Sendable {}
936
+ extension RNAttachmentKit.VideoSendIssue : Swift.Equatable {}
937
+ extension RNAttachmentKit.VideoSendIssue : Swift.Hashable {}