react-native-attachment-kit 1.0.17 → 1.1.0
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.
- package/CHANGELOG.md +472 -22
- package/android/build.gradle +8 -3
- package/android/src/main/libs/rnattachmentkit-release.aar +0 -0
- package/android/src/newarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +60 -341
- package/android/src/oldarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +60 -341
- package/ios/RNAttachmentKit.swift +66 -771
- package/ios/RNAttachmentKit.xcframework/Info.plist +5 -5
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Assets.car +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.abi.json +6853 -669
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface +108 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftinterface +108 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/RNAttachmentKit +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeResources +12 -12
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Assets.car +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.abi.json +6853 -669
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +108 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +108 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +6853 -669
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +108 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +108 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/RNAttachmentKit +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeResources +22 -22
- package/package.json +1 -1
- package/src/types.ts +5 -0
|
@@ -392,8 +392,12 @@ extension RNAttachmentKit.GalleryBaseViewController : UIKit.UIAdaptivePresentati
|
|
|
392
392
|
}
|
|
393
393
|
@_hasMissingDesignatedInitializers public class LicenseManager {
|
|
394
394
|
public static let shared: RNAttachmentKit.LicenseManager
|
|
395
|
+
public var isInitialized: Swift.Bool {
|
|
396
|
+
get
|
|
397
|
+
}
|
|
395
398
|
public func initialize(with key: Swift.String) -> Swift.Bool
|
|
396
399
|
public func isValidLicense() -> Swift.Bool
|
|
400
|
+
public func whenInitialized(timeout: Foundation.TimeInterval = 3, _ block: @escaping () -> Swift.Void)
|
|
397
401
|
@objc deinit
|
|
398
402
|
}
|
|
399
403
|
public enum LicenseGate {
|
|
@@ -432,6 +436,7 @@ public enum LicenseGate {
|
|
|
432
436
|
@_Concurrency.MainActor @preconcurrency public var placeholderImages: [Swift.String]?
|
|
433
437
|
@_Concurrency.MainActor @preconcurrency public var cacheFiles: [Swift.String]?
|
|
434
438
|
@_Concurrency.MainActor @preconcurrency public var showActionButtons: Swift.Bool
|
|
439
|
+
@_Concurrency.MainActor @preconcurrency public var startWithUiHidden: Swift.Bool
|
|
435
440
|
@_Concurrency.MainActor @preconcurrency public var showDeleteButton: Swift.Bool
|
|
436
441
|
@_Concurrency.MainActor @preconcurrency public var saveAllText: Swift.String?
|
|
437
442
|
@_Concurrency.MainActor @preconcurrency public var saveOneText: Swift.String?
|
|
@@ -940,6 +945,109 @@ public struct ViewerVideoItem {
|
|
|
940
945
|
final public func discardAll()
|
|
941
946
|
@objc deinit
|
|
942
947
|
}
|
|
948
|
+
public struct PhotoThumbnailOptions {
|
|
949
|
+
public let maxWidth: Swift.Int
|
|
950
|
+
public let maxHeight: Swift.Int
|
|
951
|
+
public let cover: Swift.Bool
|
|
952
|
+
public let quality: CoreFoundation.CGFloat
|
|
953
|
+
public let format: Swift.String
|
|
954
|
+
public init(maxWidth: Swift.Int, maxHeight: Swift.Int = 0, cover: Swift.Bool = false, quality: CoreFoundation.CGFloat = 0.8, format: Swift.String = "webp")
|
|
955
|
+
public init?(_ raw: Any?)
|
|
956
|
+
}
|
|
957
|
+
public struct AttachmentProcessingOptions {
|
|
958
|
+
public var maxWidth: Swift.Int
|
|
959
|
+
public var maxHeight: Swift.Int
|
|
960
|
+
public var outputFormat: Swift.String
|
|
961
|
+
public var thumbnail: RNAttachmentKit.PhotoThumbnailOptions?
|
|
962
|
+
public var video: RNAttachmentKit.VideoExportOptions
|
|
963
|
+
public var outputDirectory: Swift.String
|
|
964
|
+
public init(maxWidth: Swift.Int = 0, maxHeight: Swift.Int = 0, outputFormat: Swift.String = "webp", thumbnail: RNAttachmentKit.PhotoThumbnailOptions? = nil, video: RNAttachmentKit.VideoExportOptions = VideoExportOptions(), outputDirectory: Swift.String? = nil)
|
|
965
|
+
}
|
|
966
|
+
public struct AttachmentStartItem {
|
|
967
|
+
public let index: Swift.Int
|
|
968
|
+
public let isVideo: Swift.Bool
|
|
969
|
+
public let originalUri: Swift.String?
|
|
970
|
+
public let width: Swift.Int
|
|
971
|
+
public let height: Swift.Int
|
|
972
|
+
public let duration: Swift.Double?
|
|
973
|
+
public let posterURL: Foundation.URL?
|
|
974
|
+
public let posterWidth: Swift.Int
|
|
975
|
+
public let posterHeight: Swift.Int
|
|
976
|
+
public var dictionary: [Swift.String : Any] {
|
|
977
|
+
get
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
public struct AttachmentResult {
|
|
981
|
+
public let index: Swift.Int
|
|
982
|
+
public let isVideo: Swift.Bool
|
|
983
|
+
public var uri: Swift.String?
|
|
984
|
+
public var mimeType: Swift.String
|
|
985
|
+
public var width: Swift.Int?
|
|
986
|
+
public var height: Swift.Int?
|
|
987
|
+
public var fileName: Swift.String?
|
|
988
|
+
public var fileExtension: Swift.String?
|
|
989
|
+
public var fileSize: Swift.Int64?
|
|
990
|
+
public var originalUri: Swift.String
|
|
991
|
+
public var originalFileUri: Swift.String?
|
|
992
|
+
public var originalWidth: Swift.Int
|
|
993
|
+
public var originalHeight: Swift.Int
|
|
994
|
+
public var thumbnailURL: Foundation.URL?
|
|
995
|
+
public var thumbnailWidth: Swift.Int?
|
|
996
|
+
public var thumbnailHeight: Swift.Int?
|
|
997
|
+
public var thumbnailFileSize: Swift.Int?
|
|
998
|
+
public var duration: Swift.Double?
|
|
999
|
+
public var videoCodec: Swift.String?
|
|
1000
|
+
public var videoBitrate: Swift.Int?
|
|
1001
|
+
public var edited: Swift.Bool?
|
|
1002
|
+
public var error: Swift.String?
|
|
1003
|
+
public var cancelled: Swift.Bool
|
|
1004
|
+
public var path: Swift.String? {
|
|
1005
|
+
get
|
|
1006
|
+
}
|
|
1007
|
+
public var dictionary: [Swift.String : Any] {
|
|
1008
|
+
get
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
final public class AttachmentProcessingJob {
|
|
1012
|
+
public init()
|
|
1013
|
+
final public func cancel(index: Swift.Int?)
|
|
1014
|
+
final public func abort()
|
|
1015
|
+
final public var isAborted: Swift.Bool {
|
|
1016
|
+
get
|
|
1017
|
+
}
|
|
1018
|
+
final public func isCancelled(_ i: Swift.Int) -> Swift.Bool
|
|
1019
|
+
final public func begin(index: Swift.Int, exporter: RNAttachmentKit.VideoExporter)
|
|
1020
|
+
final public func end()
|
|
1021
|
+
@objc deinit
|
|
1022
|
+
}
|
|
1023
|
+
final public class AttachmentProgressThrottle {
|
|
1024
|
+
public init()
|
|
1025
|
+
final public func shouldSend(_ p: Swift.Double) -> Swift.Bool
|
|
1026
|
+
@objc deinit
|
|
1027
|
+
}
|
|
1028
|
+
public enum AttachmentProcessor {
|
|
1029
|
+
@discardableResult
|
|
1030
|
+
public static func process(_ selected: [(Photos.PHAsset?, UIKit.UIImage)], videoStates: [Swift.String : RNAttachmentKit.VideoEditState], options: RNAttachmentKit.AttachmentProcessingOptions, job: RNAttachmentKit.AttachmentProcessingJob, onStart: (([RNAttachmentKit.AttachmentStartItem]) -> Swift.Void)? = nil, onVideoProgress: ((Swift.Int, Swift.Double) -> Swift.Void)? = nil, onItem: ((RNAttachmentKit.AttachmentResult) -> Swift.Void)? = nil) -> (results: [RNAttachmentKit.AttachmentResult], aborted: Swift.Bool)
|
|
1031
|
+
public static func startItem(index: Swift.Int, asset: Photos.PHAsset?, image: UIKit.UIImage?, videoStates: [Swift.String : RNAttachmentKit.VideoEditState], options: RNAttachmentKit.AttachmentProcessingOptions) -> RNAttachmentKit.AttachmentStartItem
|
|
1032
|
+
public static func processPhoto(_ image: UIKit.UIImage, asset: Photos.PHAsset?, index: Swift.Int, options: RNAttachmentKit.AttachmentProcessingOptions) -> RNAttachmentKit.AttachmentResult?
|
|
1033
|
+
public static func processVideo(_ phAsset: Photos.PHAsset, index: Swift.Int, state: RNAttachmentKit.VideoEditState, options: RNAttachmentKit.AttachmentProcessingOptions, job: RNAttachmentKit.AttachmentProcessingJob, progress: ((Swift.Double) -> Swift.Void)? = nil) throws -> RNAttachmentKit.AttachmentResult
|
|
1034
|
+
public static var cacheDirectory: Swift.String {
|
|
1035
|
+
get
|
|
1036
|
+
}
|
|
1037
|
+
@discardableResult
|
|
1038
|
+
public static func prepareCacheDirectory() -> Swift.String
|
|
1039
|
+
public static func resizeImage(_ image: UIKit.UIImage, maxWidth: Swift.Int, maxHeight: Swift.Int) -> UIKit.UIImage?
|
|
1040
|
+
public static func saveOriginalImageAsJPEG(_ image: UIKit.UIImage, index: Swift.Int, timestamp: Swift.Int, tempDir: Swift.String) -> Swift.String?
|
|
1041
|
+
public static func saveImage(_ image: UIKit.UIImage, format: Swift.String, prefix: Swift.String, index: Swift.Int, timestamp: Swift.Int, tempDir: Swift.String, forceJPEG: Swift.Bool = false) -> Swift.String?
|
|
1042
|
+
public static func encodeWebP(image: UIKit.UIImage, quality: CoreFoundation.CGFloat) -> Foundation.Data?
|
|
1043
|
+
public static func mimeType(for format: Swift.String) -> Swift.String
|
|
1044
|
+
public static func fileMetadata(fromPath filePath: Swift.String) -> (fileName: Swift.String, fileExtension: Swift.String, fileSize: Swift.Int64)
|
|
1045
|
+
public static func photoThumbnailLayout(width w: Swift.Int, height h: Swift.Int, options o: RNAttachmentKit.PhotoThumbnailOptions) -> (crop: CoreFoundation.CGRect, size: CoreFoundation.CGSize)
|
|
1046
|
+
public static func makePhotoThumbnail(_ image: UIKit.UIImage, options: RNAttachmentKit.PhotoThumbnailOptions?, index: Swift.Int, timestamp: Swift.Int, tempDir: Swift.String) -> (url: Foundation.URL, width: Swift.Int, height: Swift.Int, fileSize: Swift.Int)?
|
|
1047
|
+
public static func photoThumbnailFields(_ image: UIKit.UIImage, options: RNAttachmentKit.PhotoThumbnailOptions?, index: Swift.Int, timestamp: Swift.Int, tempDir: Swift.String) -> [Swift.String : Any]
|
|
1048
|
+
public static func videoFrame(_ asset: Photos.PHAsset, at seconds: Swift.Double) -> UIKit.UIImage?
|
|
1049
|
+
public static func requestPoster(_ asset: Photos.PHAsset) -> UIKit.UIImage?
|
|
1050
|
+
}
|
|
943
1051
|
extension RNAttachmentKit.AttachMenuTab : Swift.Equatable {}
|
|
944
1052
|
extension RNAttachmentKit.AttachMenuTab : Swift.Hashable {}
|
|
945
1053
|
extension RNAttachmentKit.AttachMenuTab : Swift.RawRepresentable {}
|
|
Binary file
|
|
@@ -392,8 +392,12 @@ extension RNAttachmentKit.GalleryBaseViewController : UIKit.UIAdaptivePresentati
|
|
|
392
392
|
}
|
|
393
393
|
@_hasMissingDesignatedInitializers public class LicenseManager {
|
|
394
394
|
public static let shared: RNAttachmentKit.LicenseManager
|
|
395
|
+
public var isInitialized: Swift.Bool {
|
|
396
|
+
get
|
|
397
|
+
}
|
|
395
398
|
public func initialize(with key: Swift.String) -> Swift.Bool
|
|
396
399
|
public func isValidLicense() -> Swift.Bool
|
|
400
|
+
public func whenInitialized(timeout: Foundation.TimeInterval = 3, _ block: @escaping () -> Swift.Void)
|
|
397
401
|
@objc deinit
|
|
398
402
|
}
|
|
399
403
|
public enum LicenseGate {
|
|
@@ -432,6 +436,7 @@ public enum LicenseGate {
|
|
|
432
436
|
@_Concurrency.MainActor @preconcurrency public var placeholderImages: [Swift.String]?
|
|
433
437
|
@_Concurrency.MainActor @preconcurrency public var cacheFiles: [Swift.String]?
|
|
434
438
|
@_Concurrency.MainActor @preconcurrency public var showActionButtons: Swift.Bool
|
|
439
|
+
@_Concurrency.MainActor @preconcurrency public var startWithUiHidden: Swift.Bool
|
|
435
440
|
@_Concurrency.MainActor @preconcurrency public var showDeleteButton: Swift.Bool
|
|
436
441
|
@_Concurrency.MainActor @preconcurrency public var saveAllText: Swift.String?
|
|
437
442
|
@_Concurrency.MainActor @preconcurrency public var saveOneText: Swift.String?
|
|
@@ -940,6 +945,109 @@ public struct ViewerVideoItem {
|
|
|
940
945
|
final public func discardAll()
|
|
941
946
|
@objc deinit
|
|
942
947
|
}
|
|
948
|
+
public struct PhotoThumbnailOptions {
|
|
949
|
+
public let maxWidth: Swift.Int
|
|
950
|
+
public let maxHeight: Swift.Int
|
|
951
|
+
public let cover: Swift.Bool
|
|
952
|
+
public let quality: CoreFoundation.CGFloat
|
|
953
|
+
public let format: Swift.String
|
|
954
|
+
public init(maxWidth: Swift.Int, maxHeight: Swift.Int = 0, cover: Swift.Bool = false, quality: CoreFoundation.CGFloat = 0.8, format: Swift.String = "webp")
|
|
955
|
+
public init?(_ raw: Any?)
|
|
956
|
+
}
|
|
957
|
+
public struct AttachmentProcessingOptions {
|
|
958
|
+
public var maxWidth: Swift.Int
|
|
959
|
+
public var maxHeight: Swift.Int
|
|
960
|
+
public var outputFormat: Swift.String
|
|
961
|
+
public var thumbnail: RNAttachmentKit.PhotoThumbnailOptions?
|
|
962
|
+
public var video: RNAttachmentKit.VideoExportOptions
|
|
963
|
+
public var outputDirectory: Swift.String
|
|
964
|
+
public init(maxWidth: Swift.Int = 0, maxHeight: Swift.Int = 0, outputFormat: Swift.String = "webp", thumbnail: RNAttachmentKit.PhotoThumbnailOptions? = nil, video: RNAttachmentKit.VideoExportOptions = VideoExportOptions(), outputDirectory: Swift.String? = nil)
|
|
965
|
+
}
|
|
966
|
+
public struct AttachmentStartItem {
|
|
967
|
+
public let index: Swift.Int
|
|
968
|
+
public let isVideo: Swift.Bool
|
|
969
|
+
public let originalUri: Swift.String?
|
|
970
|
+
public let width: Swift.Int
|
|
971
|
+
public let height: Swift.Int
|
|
972
|
+
public let duration: Swift.Double?
|
|
973
|
+
public let posterURL: Foundation.URL?
|
|
974
|
+
public let posterWidth: Swift.Int
|
|
975
|
+
public let posterHeight: Swift.Int
|
|
976
|
+
public var dictionary: [Swift.String : Any] {
|
|
977
|
+
get
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
public struct AttachmentResult {
|
|
981
|
+
public let index: Swift.Int
|
|
982
|
+
public let isVideo: Swift.Bool
|
|
983
|
+
public var uri: Swift.String?
|
|
984
|
+
public var mimeType: Swift.String
|
|
985
|
+
public var width: Swift.Int?
|
|
986
|
+
public var height: Swift.Int?
|
|
987
|
+
public var fileName: Swift.String?
|
|
988
|
+
public var fileExtension: Swift.String?
|
|
989
|
+
public var fileSize: Swift.Int64?
|
|
990
|
+
public var originalUri: Swift.String
|
|
991
|
+
public var originalFileUri: Swift.String?
|
|
992
|
+
public var originalWidth: Swift.Int
|
|
993
|
+
public var originalHeight: Swift.Int
|
|
994
|
+
public var thumbnailURL: Foundation.URL?
|
|
995
|
+
public var thumbnailWidth: Swift.Int?
|
|
996
|
+
public var thumbnailHeight: Swift.Int?
|
|
997
|
+
public var thumbnailFileSize: Swift.Int?
|
|
998
|
+
public var duration: Swift.Double?
|
|
999
|
+
public var videoCodec: Swift.String?
|
|
1000
|
+
public var videoBitrate: Swift.Int?
|
|
1001
|
+
public var edited: Swift.Bool?
|
|
1002
|
+
public var error: Swift.String?
|
|
1003
|
+
public var cancelled: Swift.Bool
|
|
1004
|
+
public var path: Swift.String? {
|
|
1005
|
+
get
|
|
1006
|
+
}
|
|
1007
|
+
public var dictionary: [Swift.String : Any] {
|
|
1008
|
+
get
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
final public class AttachmentProcessingJob {
|
|
1012
|
+
public init()
|
|
1013
|
+
final public func cancel(index: Swift.Int?)
|
|
1014
|
+
final public func abort()
|
|
1015
|
+
final public var isAborted: Swift.Bool {
|
|
1016
|
+
get
|
|
1017
|
+
}
|
|
1018
|
+
final public func isCancelled(_ i: Swift.Int) -> Swift.Bool
|
|
1019
|
+
final public func begin(index: Swift.Int, exporter: RNAttachmentKit.VideoExporter)
|
|
1020
|
+
final public func end()
|
|
1021
|
+
@objc deinit
|
|
1022
|
+
}
|
|
1023
|
+
final public class AttachmentProgressThrottle {
|
|
1024
|
+
public init()
|
|
1025
|
+
final public func shouldSend(_ p: Swift.Double) -> Swift.Bool
|
|
1026
|
+
@objc deinit
|
|
1027
|
+
}
|
|
1028
|
+
public enum AttachmentProcessor {
|
|
1029
|
+
@discardableResult
|
|
1030
|
+
public static func process(_ selected: [(Photos.PHAsset?, UIKit.UIImage)], videoStates: [Swift.String : RNAttachmentKit.VideoEditState], options: RNAttachmentKit.AttachmentProcessingOptions, job: RNAttachmentKit.AttachmentProcessingJob, onStart: (([RNAttachmentKit.AttachmentStartItem]) -> Swift.Void)? = nil, onVideoProgress: ((Swift.Int, Swift.Double) -> Swift.Void)? = nil, onItem: ((RNAttachmentKit.AttachmentResult) -> Swift.Void)? = nil) -> (results: [RNAttachmentKit.AttachmentResult], aborted: Swift.Bool)
|
|
1031
|
+
public static func startItem(index: Swift.Int, asset: Photos.PHAsset?, image: UIKit.UIImage?, videoStates: [Swift.String : RNAttachmentKit.VideoEditState], options: RNAttachmentKit.AttachmentProcessingOptions) -> RNAttachmentKit.AttachmentStartItem
|
|
1032
|
+
public static func processPhoto(_ image: UIKit.UIImage, asset: Photos.PHAsset?, index: Swift.Int, options: RNAttachmentKit.AttachmentProcessingOptions) -> RNAttachmentKit.AttachmentResult?
|
|
1033
|
+
public static func processVideo(_ phAsset: Photos.PHAsset, index: Swift.Int, state: RNAttachmentKit.VideoEditState, options: RNAttachmentKit.AttachmentProcessingOptions, job: RNAttachmentKit.AttachmentProcessingJob, progress: ((Swift.Double) -> Swift.Void)? = nil) throws -> RNAttachmentKit.AttachmentResult
|
|
1034
|
+
public static var cacheDirectory: Swift.String {
|
|
1035
|
+
get
|
|
1036
|
+
}
|
|
1037
|
+
@discardableResult
|
|
1038
|
+
public static func prepareCacheDirectory() -> Swift.String
|
|
1039
|
+
public static func resizeImage(_ image: UIKit.UIImage, maxWidth: Swift.Int, maxHeight: Swift.Int) -> UIKit.UIImage?
|
|
1040
|
+
public static func saveOriginalImageAsJPEG(_ image: UIKit.UIImage, index: Swift.Int, timestamp: Swift.Int, tempDir: Swift.String) -> Swift.String?
|
|
1041
|
+
public static func saveImage(_ image: UIKit.UIImage, format: Swift.String, prefix: Swift.String, index: Swift.Int, timestamp: Swift.Int, tempDir: Swift.String, forceJPEG: Swift.Bool = false) -> Swift.String?
|
|
1042
|
+
public static func encodeWebP(image: UIKit.UIImage, quality: CoreFoundation.CGFloat) -> Foundation.Data?
|
|
1043
|
+
public static func mimeType(for format: Swift.String) -> Swift.String
|
|
1044
|
+
public static func fileMetadata(fromPath filePath: Swift.String) -> (fileName: Swift.String, fileExtension: Swift.String, fileSize: Swift.Int64)
|
|
1045
|
+
public static func photoThumbnailLayout(width w: Swift.Int, height h: Swift.Int, options o: RNAttachmentKit.PhotoThumbnailOptions) -> (crop: CoreFoundation.CGRect, size: CoreFoundation.CGSize)
|
|
1046
|
+
public static func makePhotoThumbnail(_ image: UIKit.UIImage, options: RNAttachmentKit.PhotoThumbnailOptions?, index: Swift.Int, timestamp: Swift.Int, tempDir: Swift.String) -> (url: Foundation.URL, width: Swift.Int, height: Swift.Int, fileSize: Swift.Int)?
|
|
1047
|
+
public static func photoThumbnailFields(_ image: UIKit.UIImage, options: RNAttachmentKit.PhotoThumbnailOptions?, index: Swift.Int, timestamp: Swift.Int, tempDir: Swift.String) -> [Swift.String : Any]
|
|
1048
|
+
public static func videoFrame(_ asset: Photos.PHAsset, at seconds: Swift.Double) -> UIKit.UIImage?
|
|
1049
|
+
public static func requestPoster(_ asset: Photos.PHAsset) -> UIKit.UIImage?
|
|
1050
|
+
}
|
|
943
1051
|
extension RNAttachmentKit.AttachMenuTab : Swift.Equatable {}
|
|
944
1052
|
extension RNAttachmentKit.AttachMenuTab : Swift.Hashable {}
|
|
945
1053
|
extension RNAttachmentKit.AttachMenuTab : Swift.RawRepresentable {}
|