react-native-video-trim 3.0.9 → 4.0.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/LICENSE +1 -1
- package/README.md +64 -61
- package/VideoTrim.podspec +24 -0
- package/android/CMakeLists.txt +24 -0
- package/android/build.gradle +77 -51
- package/android/gradle.properties +5 -5
- package/android/src/main/AndroidManifest.xml +4 -2
- package/android/src/main/cpp/cpp-adapter.cpp +6 -0
- package/android/src/main/java/com/margelo/nitro/videotrim/VideoTrim.kt +629 -0
- package/android/src/main/java/com/margelo/nitro/videotrim/VideoTrimPackage.kt +22 -0
- package/android/src/main/java/com/{videotrim → margelo/nitro/videotrim}/enums/ErrorCode.java +1 -1
- package/android/src/main/java/com/{videotrim → margelo/nitro/videotrim}/interfaces/IVideoTrimmerView.java +1 -1
- package/android/src/main/java/com/{videotrim → margelo/nitro/videotrim}/interfaces/VideoTrimListener.java +6 -4
- package/android/src/main/java/com/{videotrim → margelo/nitro/videotrim}/utils/MediaMetadataUtil.java +1 -1
- package/android/src/main/java/com/{videotrim → margelo/nitro/videotrim}/utils/StorageUtil.java +3 -1
- package/android/src/main/java/com/margelo/nitro/videotrim/utils/VideoTrimmerUtil.java +157 -0
- package/android/src/main/java/com/{videotrim → margelo/nitro/videotrim}/widgets/VideoTrimmerView.java +44 -72
- package/ios/AssetLoader.swift +2 -2
- package/ios/ErrorCode.swift +2 -2
- package/ios/ProgressAlertController.swift +2 -2
- package/ios/VideoTrim.swift +38 -739
- package/ios/VideoTrimImpl.swift +860 -0
- package/ios/VideoTrimmer.swift +2 -3
- package/ios/VideoTrimmerThumb.swift +33 -26
- package/ios/VideoTrimmerViewController.swift +47 -28
- package/lib/module/VideoTrim.nitro.js +4 -0
- package/lib/module/VideoTrim.nitro.js.map +1 -0
- package/lib/module/index.js +71 -22
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/{index.d.ts → src/VideoTrim.nitro.d.ts} +63 -89
- package/lib/typescript/src/VideoTrim.nitro.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +41 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/nitrogen/generated/android/c++/JEditorConfig.hpp +229 -0
- package/nitrogen/generated/android/c++/JFileValidationResult.hpp +61 -0
- package/nitrogen/generated/android/c++/JFunc_void.hpp +74 -0
- package/nitrogen/generated/android/c++/JFunc_void_std__string_std__unordered_map_std__string__std__string_.hpp +89 -0
- package/nitrogen/generated/android/c++/JHybridVideoTrimSpec.cpp +131 -0
- package/nitrogen/generated/android/c++/JHybridVideoTrimSpec.hpp +67 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/videotrim/EditorConfig.kt +70 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/videotrim/FileValidationResult.kt +28 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/videotrim/Func_void.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/videotrim/Func_void_std__string_std__unordered_map_std__string__std__string_.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/videotrim/HybridVideoTrimSpec.kt +82 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/videotrim/videotrimOnLoad.kt +35 -0
- package/nitrogen/generated/android/videotrim+autolinking.cmake +78 -0
- package/nitrogen/generated/android/videotrim+autolinking.gradle +27 -0
- package/nitrogen/generated/android/videotrimOnLoad.cpp +50 -0
- package/nitrogen/generated/android/videotrimOnLoad.hpp +25 -0
- package/nitrogen/generated/ios/VideoTrim+autolinking.rb +60 -0
- package/nitrogen/generated/ios/VideoTrim-Swift-Cxx-Bridge.cpp +88 -0
- package/nitrogen/generated/ios/VideoTrim-Swift-Cxx-Bridge.hpp +331 -0
- package/nitrogen/generated/ios/VideoTrim-Swift-Cxx-Umbrella.hpp +53 -0
- package/nitrogen/generated/ios/VideoTrimAutolinking.mm +33 -0
- package/nitrogen/generated/ios/VideoTrimAutolinking.swift +25 -0
- package/nitrogen/generated/ios/c++/HybridVideoTrimSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridVideoTrimSpecSwift.hpp +116 -0
- package/nitrogen/generated/ios/swift/EditorConfig.swift +519 -0
- package/nitrogen/generated/ios/swift/FileValidationResult.swift +57 -0
- package/nitrogen/generated/ios/swift/Func_void.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_FileValidationResult.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_double.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__string_std__unordered_map_std__string__std__string_.swift +54 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_std__string_.swift +46 -0
- package/nitrogen/generated/ios/swift/HybridVideoTrimSpec.swift +53 -0
- package/nitrogen/generated/ios/swift/HybridVideoTrimSpec_cxx.swift +222 -0
- package/nitrogen/generated/shared/c++/EditorConfig.hpp +245 -0
- package/nitrogen/generated/shared/c++/FileValidationResult.hpp +77 -0
- package/nitrogen/generated/shared/c++/HybridVideoTrimSpec.cpp +26 -0
- package/nitrogen/generated/shared/c++/HybridVideoTrimSpec.hpp +76 -0
- package/package.json +75 -71
- package/src/VideoTrim.nitro.ts +244 -0
- package/src/index.tsx +87 -258
- package/android/src/main/AndroidManifestDeprecated.xml +0 -3
- package/android/src/main/java/com/videotrim/VideoTrimModule.java +0 -600
- package/android/src/main/java/com/videotrim/VideoTrimPackage.java +0 -28
- package/android/src/main/java/com/videotrim/utils/VideoTrimmerUtil.java +0 -270
- package/ios/VideoTrim-Bridging-Header.h +0 -2
- package/ios/VideoTrim.mm +0 -17
- package/ios/VideoTrim.xcodeproj/project.pbxproj +0 -283
- package/lib/commonjs/index.js +0 -87
- package/lib/commonjs/index.js.map +0 -1
- package/lib/typescript/index.d.ts.map +0 -1
- package/react-native-video-trim.podspec +0 -41
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// EditorConfig.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Represents an instance of `EditorConfig`, backed by a C++ struct.
|
|
12
|
+
*/
|
|
13
|
+
public typealias EditorConfig = margelo.nitro.videotrim.EditorConfig
|
|
14
|
+
|
|
15
|
+
public extension EditorConfig {
|
|
16
|
+
private typealias bridge = margelo.nitro.videotrim.bridge.swift
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Create a new instance of `EditorConfig`.
|
|
20
|
+
*/
|
|
21
|
+
init(enableHapticFeedback: Bool, saveToPhoto: Bool, maxDuration: Double, minDuration: Double, cancelButtonText: String, saveButtonText: String, enableCancelDialog: Bool, cancelDialogTitle: String, cancelDialogMessage: String, cancelDialogCancelText: String, cancelDialogConfirmText: String, enableSaveDialog: Bool, saveDialogTitle: String, saveDialogMessage: String, saveDialogCancelText: String, saveDialogConfirmText: String, trimmingText: String, fullScreenModalIOS: Bool, type: String, outputExt: String, openDocumentsOnFinish: Bool, openShareSheetOnFinish: Bool, removeAfterSavedToPhoto: Bool, removeAfterFailedToSavePhoto: Bool, removeAfterSavedToDocuments: Bool, removeAfterFailedToSaveDocuments: Bool, removeAfterShared: Bool, removeAfterFailedToShare: Bool, autoplay: Bool, jumpToPositionOnLoad: Double, closeWhenFinish: Bool, enableCancelTrimming: Bool, cancelTrimmingButtonText: String, enableCancelTrimmingDialog: Bool, cancelTrimmingDialogTitle: String, cancelTrimmingDialogMessage: String, cancelTrimmingDialogCancelText: String, cancelTrimmingDialogConfirmText: String, headerText: String, headerTextSize: Double, headerTextColor: Double, alertOnFailToLoad: Bool, alertOnFailTitle: String, alertOnFailMessage: String, alertOnFailCloseText: String) {
|
|
22
|
+
self.init(enableHapticFeedback, saveToPhoto, maxDuration, minDuration, std.string(cancelButtonText), std.string(saveButtonText), enableCancelDialog, std.string(cancelDialogTitle), std.string(cancelDialogMessage), std.string(cancelDialogCancelText), std.string(cancelDialogConfirmText), enableSaveDialog, std.string(saveDialogTitle), std.string(saveDialogMessage), std.string(saveDialogCancelText), std.string(saveDialogConfirmText), std.string(trimmingText), fullScreenModalIOS, std.string(type), std.string(outputExt), openDocumentsOnFinish, openShareSheetOnFinish, removeAfterSavedToPhoto, removeAfterFailedToSavePhoto, removeAfterSavedToDocuments, removeAfterFailedToSaveDocuments, removeAfterShared, removeAfterFailedToShare, autoplay, jumpToPositionOnLoad, closeWhenFinish, enableCancelTrimming, std.string(cancelTrimmingButtonText), enableCancelTrimmingDialog, std.string(cancelTrimmingDialogTitle), std.string(cancelTrimmingDialogMessage), std.string(cancelTrimmingDialogCancelText), std.string(cancelTrimmingDialogConfirmText), std.string(headerText), headerTextSize, headerTextColor, alertOnFailToLoad, std.string(alertOnFailTitle), std.string(alertOnFailMessage), std.string(alertOnFailCloseText))
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var enableHapticFeedback: Bool {
|
|
26
|
+
@inline(__always)
|
|
27
|
+
get {
|
|
28
|
+
return self.__enableHapticFeedback
|
|
29
|
+
}
|
|
30
|
+
@inline(__always)
|
|
31
|
+
set {
|
|
32
|
+
self.__enableHapticFeedback = newValue
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
var saveToPhoto: Bool {
|
|
37
|
+
@inline(__always)
|
|
38
|
+
get {
|
|
39
|
+
return self.__saveToPhoto
|
|
40
|
+
}
|
|
41
|
+
@inline(__always)
|
|
42
|
+
set {
|
|
43
|
+
self.__saveToPhoto = newValue
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
var maxDuration: Double {
|
|
48
|
+
@inline(__always)
|
|
49
|
+
get {
|
|
50
|
+
return self.__maxDuration
|
|
51
|
+
}
|
|
52
|
+
@inline(__always)
|
|
53
|
+
set {
|
|
54
|
+
self.__maxDuration = newValue
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
var minDuration: Double {
|
|
59
|
+
@inline(__always)
|
|
60
|
+
get {
|
|
61
|
+
return self.__minDuration
|
|
62
|
+
}
|
|
63
|
+
@inline(__always)
|
|
64
|
+
set {
|
|
65
|
+
self.__minDuration = newValue
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
var cancelButtonText: String {
|
|
70
|
+
@inline(__always)
|
|
71
|
+
get {
|
|
72
|
+
return String(self.__cancelButtonText)
|
|
73
|
+
}
|
|
74
|
+
@inline(__always)
|
|
75
|
+
set {
|
|
76
|
+
self.__cancelButtonText = std.string(newValue)
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
var saveButtonText: String {
|
|
81
|
+
@inline(__always)
|
|
82
|
+
get {
|
|
83
|
+
return String(self.__saveButtonText)
|
|
84
|
+
}
|
|
85
|
+
@inline(__always)
|
|
86
|
+
set {
|
|
87
|
+
self.__saveButtonText = std.string(newValue)
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
var enableCancelDialog: Bool {
|
|
92
|
+
@inline(__always)
|
|
93
|
+
get {
|
|
94
|
+
return self.__enableCancelDialog
|
|
95
|
+
}
|
|
96
|
+
@inline(__always)
|
|
97
|
+
set {
|
|
98
|
+
self.__enableCancelDialog = newValue
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
var cancelDialogTitle: String {
|
|
103
|
+
@inline(__always)
|
|
104
|
+
get {
|
|
105
|
+
return String(self.__cancelDialogTitle)
|
|
106
|
+
}
|
|
107
|
+
@inline(__always)
|
|
108
|
+
set {
|
|
109
|
+
self.__cancelDialogTitle = std.string(newValue)
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
var cancelDialogMessage: String {
|
|
114
|
+
@inline(__always)
|
|
115
|
+
get {
|
|
116
|
+
return String(self.__cancelDialogMessage)
|
|
117
|
+
}
|
|
118
|
+
@inline(__always)
|
|
119
|
+
set {
|
|
120
|
+
self.__cancelDialogMessage = std.string(newValue)
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
var cancelDialogCancelText: String {
|
|
125
|
+
@inline(__always)
|
|
126
|
+
get {
|
|
127
|
+
return String(self.__cancelDialogCancelText)
|
|
128
|
+
}
|
|
129
|
+
@inline(__always)
|
|
130
|
+
set {
|
|
131
|
+
self.__cancelDialogCancelText = std.string(newValue)
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
var cancelDialogConfirmText: String {
|
|
136
|
+
@inline(__always)
|
|
137
|
+
get {
|
|
138
|
+
return String(self.__cancelDialogConfirmText)
|
|
139
|
+
}
|
|
140
|
+
@inline(__always)
|
|
141
|
+
set {
|
|
142
|
+
self.__cancelDialogConfirmText = std.string(newValue)
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
var enableSaveDialog: Bool {
|
|
147
|
+
@inline(__always)
|
|
148
|
+
get {
|
|
149
|
+
return self.__enableSaveDialog
|
|
150
|
+
}
|
|
151
|
+
@inline(__always)
|
|
152
|
+
set {
|
|
153
|
+
self.__enableSaveDialog = newValue
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
var saveDialogTitle: String {
|
|
158
|
+
@inline(__always)
|
|
159
|
+
get {
|
|
160
|
+
return String(self.__saveDialogTitle)
|
|
161
|
+
}
|
|
162
|
+
@inline(__always)
|
|
163
|
+
set {
|
|
164
|
+
self.__saveDialogTitle = std.string(newValue)
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
var saveDialogMessage: String {
|
|
169
|
+
@inline(__always)
|
|
170
|
+
get {
|
|
171
|
+
return String(self.__saveDialogMessage)
|
|
172
|
+
}
|
|
173
|
+
@inline(__always)
|
|
174
|
+
set {
|
|
175
|
+
self.__saveDialogMessage = std.string(newValue)
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
var saveDialogCancelText: String {
|
|
180
|
+
@inline(__always)
|
|
181
|
+
get {
|
|
182
|
+
return String(self.__saveDialogCancelText)
|
|
183
|
+
}
|
|
184
|
+
@inline(__always)
|
|
185
|
+
set {
|
|
186
|
+
self.__saveDialogCancelText = std.string(newValue)
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
var saveDialogConfirmText: String {
|
|
191
|
+
@inline(__always)
|
|
192
|
+
get {
|
|
193
|
+
return String(self.__saveDialogConfirmText)
|
|
194
|
+
}
|
|
195
|
+
@inline(__always)
|
|
196
|
+
set {
|
|
197
|
+
self.__saveDialogConfirmText = std.string(newValue)
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
var trimmingText: String {
|
|
202
|
+
@inline(__always)
|
|
203
|
+
get {
|
|
204
|
+
return String(self.__trimmingText)
|
|
205
|
+
}
|
|
206
|
+
@inline(__always)
|
|
207
|
+
set {
|
|
208
|
+
self.__trimmingText = std.string(newValue)
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
var fullScreenModalIOS: Bool {
|
|
213
|
+
@inline(__always)
|
|
214
|
+
get {
|
|
215
|
+
return self.__fullScreenModalIOS
|
|
216
|
+
}
|
|
217
|
+
@inline(__always)
|
|
218
|
+
set {
|
|
219
|
+
self.__fullScreenModalIOS = newValue
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
var type: String {
|
|
224
|
+
@inline(__always)
|
|
225
|
+
get {
|
|
226
|
+
return String(self.__type)
|
|
227
|
+
}
|
|
228
|
+
@inline(__always)
|
|
229
|
+
set {
|
|
230
|
+
self.__type = std.string(newValue)
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
var outputExt: String {
|
|
235
|
+
@inline(__always)
|
|
236
|
+
get {
|
|
237
|
+
return String(self.__outputExt)
|
|
238
|
+
}
|
|
239
|
+
@inline(__always)
|
|
240
|
+
set {
|
|
241
|
+
self.__outputExt = std.string(newValue)
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
var openDocumentsOnFinish: Bool {
|
|
246
|
+
@inline(__always)
|
|
247
|
+
get {
|
|
248
|
+
return self.__openDocumentsOnFinish
|
|
249
|
+
}
|
|
250
|
+
@inline(__always)
|
|
251
|
+
set {
|
|
252
|
+
self.__openDocumentsOnFinish = newValue
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
var openShareSheetOnFinish: Bool {
|
|
257
|
+
@inline(__always)
|
|
258
|
+
get {
|
|
259
|
+
return self.__openShareSheetOnFinish
|
|
260
|
+
}
|
|
261
|
+
@inline(__always)
|
|
262
|
+
set {
|
|
263
|
+
self.__openShareSheetOnFinish = newValue
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
var removeAfterSavedToPhoto: Bool {
|
|
268
|
+
@inline(__always)
|
|
269
|
+
get {
|
|
270
|
+
return self.__removeAfterSavedToPhoto
|
|
271
|
+
}
|
|
272
|
+
@inline(__always)
|
|
273
|
+
set {
|
|
274
|
+
self.__removeAfterSavedToPhoto = newValue
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
var removeAfterFailedToSavePhoto: Bool {
|
|
279
|
+
@inline(__always)
|
|
280
|
+
get {
|
|
281
|
+
return self.__removeAfterFailedToSavePhoto
|
|
282
|
+
}
|
|
283
|
+
@inline(__always)
|
|
284
|
+
set {
|
|
285
|
+
self.__removeAfterFailedToSavePhoto = newValue
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
var removeAfterSavedToDocuments: Bool {
|
|
290
|
+
@inline(__always)
|
|
291
|
+
get {
|
|
292
|
+
return self.__removeAfterSavedToDocuments
|
|
293
|
+
}
|
|
294
|
+
@inline(__always)
|
|
295
|
+
set {
|
|
296
|
+
self.__removeAfterSavedToDocuments = newValue
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
var removeAfterFailedToSaveDocuments: Bool {
|
|
301
|
+
@inline(__always)
|
|
302
|
+
get {
|
|
303
|
+
return self.__removeAfterFailedToSaveDocuments
|
|
304
|
+
}
|
|
305
|
+
@inline(__always)
|
|
306
|
+
set {
|
|
307
|
+
self.__removeAfterFailedToSaveDocuments = newValue
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
var removeAfterShared: Bool {
|
|
312
|
+
@inline(__always)
|
|
313
|
+
get {
|
|
314
|
+
return self.__removeAfterShared
|
|
315
|
+
}
|
|
316
|
+
@inline(__always)
|
|
317
|
+
set {
|
|
318
|
+
self.__removeAfterShared = newValue
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
var removeAfterFailedToShare: Bool {
|
|
323
|
+
@inline(__always)
|
|
324
|
+
get {
|
|
325
|
+
return self.__removeAfterFailedToShare
|
|
326
|
+
}
|
|
327
|
+
@inline(__always)
|
|
328
|
+
set {
|
|
329
|
+
self.__removeAfterFailedToShare = newValue
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
var autoplay: Bool {
|
|
334
|
+
@inline(__always)
|
|
335
|
+
get {
|
|
336
|
+
return self.__autoplay
|
|
337
|
+
}
|
|
338
|
+
@inline(__always)
|
|
339
|
+
set {
|
|
340
|
+
self.__autoplay = newValue
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
var jumpToPositionOnLoad: Double {
|
|
345
|
+
@inline(__always)
|
|
346
|
+
get {
|
|
347
|
+
return self.__jumpToPositionOnLoad
|
|
348
|
+
}
|
|
349
|
+
@inline(__always)
|
|
350
|
+
set {
|
|
351
|
+
self.__jumpToPositionOnLoad = newValue
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
var closeWhenFinish: Bool {
|
|
356
|
+
@inline(__always)
|
|
357
|
+
get {
|
|
358
|
+
return self.__closeWhenFinish
|
|
359
|
+
}
|
|
360
|
+
@inline(__always)
|
|
361
|
+
set {
|
|
362
|
+
self.__closeWhenFinish = newValue
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
var enableCancelTrimming: Bool {
|
|
367
|
+
@inline(__always)
|
|
368
|
+
get {
|
|
369
|
+
return self.__enableCancelTrimming
|
|
370
|
+
}
|
|
371
|
+
@inline(__always)
|
|
372
|
+
set {
|
|
373
|
+
self.__enableCancelTrimming = newValue
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
var cancelTrimmingButtonText: String {
|
|
378
|
+
@inline(__always)
|
|
379
|
+
get {
|
|
380
|
+
return String(self.__cancelTrimmingButtonText)
|
|
381
|
+
}
|
|
382
|
+
@inline(__always)
|
|
383
|
+
set {
|
|
384
|
+
self.__cancelTrimmingButtonText = std.string(newValue)
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
var enableCancelTrimmingDialog: Bool {
|
|
389
|
+
@inline(__always)
|
|
390
|
+
get {
|
|
391
|
+
return self.__enableCancelTrimmingDialog
|
|
392
|
+
}
|
|
393
|
+
@inline(__always)
|
|
394
|
+
set {
|
|
395
|
+
self.__enableCancelTrimmingDialog = newValue
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
var cancelTrimmingDialogTitle: String {
|
|
400
|
+
@inline(__always)
|
|
401
|
+
get {
|
|
402
|
+
return String(self.__cancelTrimmingDialogTitle)
|
|
403
|
+
}
|
|
404
|
+
@inline(__always)
|
|
405
|
+
set {
|
|
406
|
+
self.__cancelTrimmingDialogTitle = std.string(newValue)
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
var cancelTrimmingDialogMessage: String {
|
|
411
|
+
@inline(__always)
|
|
412
|
+
get {
|
|
413
|
+
return String(self.__cancelTrimmingDialogMessage)
|
|
414
|
+
}
|
|
415
|
+
@inline(__always)
|
|
416
|
+
set {
|
|
417
|
+
self.__cancelTrimmingDialogMessage = std.string(newValue)
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
var cancelTrimmingDialogCancelText: String {
|
|
422
|
+
@inline(__always)
|
|
423
|
+
get {
|
|
424
|
+
return String(self.__cancelTrimmingDialogCancelText)
|
|
425
|
+
}
|
|
426
|
+
@inline(__always)
|
|
427
|
+
set {
|
|
428
|
+
self.__cancelTrimmingDialogCancelText = std.string(newValue)
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
var cancelTrimmingDialogConfirmText: String {
|
|
433
|
+
@inline(__always)
|
|
434
|
+
get {
|
|
435
|
+
return String(self.__cancelTrimmingDialogConfirmText)
|
|
436
|
+
}
|
|
437
|
+
@inline(__always)
|
|
438
|
+
set {
|
|
439
|
+
self.__cancelTrimmingDialogConfirmText = std.string(newValue)
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
var headerText: String {
|
|
444
|
+
@inline(__always)
|
|
445
|
+
get {
|
|
446
|
+
return String(self.__headerText)
|
|
447
|
+
}
|
|
448
|
+
@inline(__always)
|
|
449
|
+
set {
|
|
450
|
+
self.__headerText = std.string(newValue)
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
var headerTextSize: Double {
|
|
455
|
+
@inline(__always)
|
|
456
|
+
get {
|
|
457
|
+
return self.__headerTextSize
|
|
458
|
+
}
|
|
459
|
+
@inline(__always)
|
|
460
|
+
set {
|
|
461
|
+
self.__headerTextSize = newValue
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
var headerTextColor: Double {
|
|
466
|
+
@inline(__always)
|
|
467
|
+
get {
|
|
468
|
+
return self.__headerTextColor
|
|
469
|
+
}
|
|
470
|
+
@inline(__always)
|
|
471
|
+
set {
|
|
472
|
+
self.__headerTextColor = newValue
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
var alertOnFailToLoad: Bool {
|
|
477
|
+
@inline(__always)
|
|
478
|
+
get {
|
|
479
|
+
return self.__alertOnFailToLoad
|
|
480
|
+
}
|
|
481
|
+
@inline(__always)
|
|
482
|
+
set {
|
|
483
|
+
self.__alertOnFailToLoad = newValue
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
var alertOnFailTitle: String {
|
|
488
|
+
@inline(__always)
|
|
489
|
+
get {
|
|
490
|
+
return String(self.__alertOnFailTitle)
|
|
491
|
+
}
|
|
492
|
+
@inline(__always)
|
|
493
|
+
set {
|
|
494
|
+
self.__alertOnFailTitle = std.string(newValue)
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
var alertOnFailMessage: String {
|
|
499
|
+
@inline(__always)
|
|
500
|
+
get {
|
|
501
|
+
return String(self.__alertOnFailMessage)
|
|
502
|
+
}
|
|
503
|
+
@inline(__always)
|
|
504
|
+
set {
|
|
505
|
+
self.__alertOnFailMessage = std.string(newValue)
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
var alertOnFailCloseText: String {
|
|
510
|
+
@inline(__always)
|
|
511
|
+
get {
|
|
512
|
+
return String(self.__alertOnFailCloseText)
|
|
513
|
+
}
|
|
514
|
+
@inline(__always)
|
|
515
|
+
set {
|
|
516
|
+
self.__alertOnFailCloseText = std.string(newValue)
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// FileValidationResult.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Represents an instance of `FileValidationResult`, backed by a C++ struct.
|
|
12
|
+
*/
|
|
13
|
+
public typealias FileValidationResult = margelo.nitro.videotrim.FileValidationResult
|
|
14
|
+
|
|
15
|
+
public extension FileValidationResult {
|
|
16
|
+
private typealias bridge = margelo.nitro.videotrim.bridge.swift
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Create a new instance of `FileValidationResult`.
|
|
20
|
+
*/
|
|
21
|
+
init(isValid: Bool, fileType: String, duration: Double) {
|
|
22
|
+
self.init(isValid, std.string(fileType), duration)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var isValid: Bool {
|
|
26
|
+
@inline(__always)
|
|
27
|
+
get {
|
|
28
|
+
return self.__isValid
|
|
29
|
+
}
|
|
30
|
+
@inline(__always)
|
|
31
|
+
set {
|
|
32
|
+
self.__isValid = newValue
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
var fileType: String {
|
|
37
|
+
@inline(__always)
|
|
38
|
+
get {
|
|
39
|
+
return String(self.__fileType)
|
|
40
|
+
}
|
|
41
|
+
@inline(__always)
|
|
42
|
+
set {
|
|
43
|
+
self.__fileType = std.string(newValue)
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
var duration: Double {
|
|
48
|
+
@inline(__always)
|
|
49
|
+
get {
|
|
50
|
+
return self.__duration
|
|
51
|
+
}
|
|
52
|
+
@inline(__always)
|
|
53
|
+
set {
|
|
54
|
+
self.__duration = newValue
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Func_void.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Wraps a Swift `() -> Void` as a class.
|
|
12
|
+
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
13
|
+
*/
|
|
14
|
+
public final class Func_void {
|
|
15
|
+
public typealias bridge = margelo.nitro.videotrim.bridge.swift
|
|
16
|
+
|
|
17
|
+
private let closure: () -> Void
|
|
18
|
+
|
|
19
|
+
public init(_ closure: @escaping () -> Void) {
|
|
20
|
+
self.closure = closure
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@inline(__always)
|
|
24
|
+
public func call() -> Void {
|
|
25
|
+
self.closure()
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Casts this instance to a retained unsafe raw pointer.
|
|
30
|
+
* This acquires one additional strong reference on the object!
|
|
31
|
+
*/
|
|
32
|
+
@inline(__always)
|
|
33
|
+
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
34
|
+
return Unmanaged.passRetained(self).toOpaque()
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Casts an unsafe pointer to a `Func_void`.
|
|
39
|
+
* The pointer has to be a retained opaque `Unmanaged<Func_void>`.
|
|
40
|
+
* This removes one strong reference from the object!
|
|
41
|
+
*/
|
|
42
|
+
@inline(__always)
|
|
43
|
+
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void {
|
|
44
|
+
return Unmanaged<Func_void>.fromOpaque(pointer).takeRetainedValue()
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Func_void_FileValidationResult.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Wraps a Swift `(_ value: FileValidationResult) -> Void` as a class.
|
|
12
|
+
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
13
|
+
*/
|
|
14
|
+
public final class Func_void_FileValidationResult {
|
|
15
|
+
public typealias bridge = margelo.nitro.videotrim.bridge.swift
|
|
16
|
+
|
|
17
|
+
private let closure: (_ value: FileValidationResult) -> Void
|
|
18
|
+
|
|
19
|
+
public init(_ closure: @escaping (_ value: FileValidationResult) -> Void) {
|
|
20
|
+
self.closure = closure
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@inline(__always)
|
|
24
|
+
public func call(value: FileValidationResult) -> Void {
|
|
25
|
+
self.closure(value)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Casts this instance to a retained unsafe raw pointer.
|
|
30
|
+
* This acquires one additional strong reference on the object!
|
|
31
|
+
*/
|
|
32
|
+
@inline(__always)
|
|
33
|
+
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
34
|
+
return Unmanaged.passRetained(self).toOpaque()
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Casts an unsafe pointer to a `Func_void_FileValidationResult`.
|
|
39
|
+
* The pointer has to be a retained opaque `Unmanaged<Func_void_FileValidationResult>`.
|
|
40
|
+
* This removes one strong reference from the object!
|
|
41
|
+
*/
|
|
42
|
+
@inline(__always)
|
|
43
|
+
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_FileValidationResult {
|
|
44
|
+
return Unmanaged<Func_void_FileValidationResult>.fromOpaque(pointer).takeRetainedValue()
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Func_void_bool.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Wraps a Swift `(_ value: Bool) -> Void` as a class.
|
|
12
|
+
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
13
|
+
*/
|
|
14
|
+
public final class Func_void_bool {
|
|
15
|
+
public typealias bridge = margelo.nitro.videotrim.bridge.swift
|
|
16
|
+
|
|
17
|
+
private let closure: (_ value: Bool) -> Void
|
|
18
|
+
|
|
19
|
+
public init(_ closure: @escaping (_ value: Bool) -> Void) {
|
|
20
|
+
self.closure = closure
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@inline(__always)
|
|
24
|
+
public func call(value: Bool) -> Void {
|
|
25
|
+
self.closure(value)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Casts this instance to a retained unsafe raw pointer.
|
|
30
|
+
* This acquires one additional strong reference on the object!
|
|
31
|
+
*/
|
|
32
|
+
@inline(__always)
|
|
33
|
+
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
34
|
+
return Unmanaged.passRetained(self).toOpaque()
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Casts an unsafe pointer to a `Func_void_bool`.
|
|
39
|
+
* The pointer has to be a retained opaque `Unmanaged<Func_void_bool>`.
|
|
40
|
+
* This removes one strong reference from the object!
|
|
41
|
+
*/
|
|
42
|
+
@inline(__always)
|
|
43
|
+
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_bool {
|
|
44
|
+
return Unmanaged<Func_void_bool>.fromOpaque(pointer).takeRetainedValue()
|
|
45
|
+
}
|
|
46
|
+
}
|