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