theta-client-react-native 1.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.
@@ -0,0 +1,1061 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.WhiteBalanceEnum = exports.VideoFileFormatEnum = exports.VideoCaptureBuilder = exports.VideoCapture = exports.THETA_EVENT_NAME = exports.SleepDelayEnum = exports.PhotoFileFormatEnum = exports.PhotoCaptureBuilder = exports.PhotoCapture = exports.OptionNameEnum = exports.OffDelayEnum = exports.MaxRecordableTimeEnum = exports.LanguageEnum = exports.IsoEnum = exports.IsoAutoHighLimitEnum = exports.GpsTagRecordingEnum = exports.FilterEnum = exports.FileTypeEnum = exports.FileFormatTypeEnum = exports.ExposureProgramEnum = exports.ExposureDelayEnum = exports.ExposureCompensationEnum = exports.ChargingStateEnum = exports.CaptureModeEnum = exports.CaptureBuilder = exports.AuthModeEnum = exports.ApertureEnum = void 0;
7
+ exports.cancelVideoConvert = cancelVideoConvert;
8
+ exports.convertVideoFormats = convertVideoFormats;
9
+ exports.deleteAccessPoint = deleteAccessPoint;
10
+ exports.deleteAllFiles = deleteAllFiles;
11
+ exports.deleteAllImageFiles = deleteAllImageFiles;
12
+ exports.deleteAllVideoFiles = deleteAllVideoFiles;
13
+ exports.deleteFiles = deleteFiles;
14
+ exports.finishWlan = finishWlan;
15
+ exports.getLivePreview = getLivePreview;
16
+ exports.getMetadata = getMetadata;
17
+ exports.getOptions = getOptions;
18
+ exports.getPhotoCaptureBuilder = getPhotoCaptureBuilder;
19
+ exports.getThetaInfo = getThetaInfo;
20
+ exports.getThetaState = getThetaState;
21
+ exports.getVideoCaptureBuilder = getVideoCaptureBuilder;
22
+ exports.initialize = initialize;
23
+ exports.listAccessPoints = listAccessPoints;
24
+ exports.listFiles = listFiles;
25
+ exports.reset = reset;
26
+ exports.restoreSettings = restoreSettings;
27
+ exports.setAccessPointDynamically = setAccessPointDynamically;
28
+ exports.setAccessPointStatically = setAccessPointStatically;
29
+ exports.setOptions = setOptions;
30
+ exports.stopLivePreview = stopLivePreview;
31
+ exports.stopSelfTimer = stopSelfTimer;
32
+ var _reactNative = require("react-native");
33
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
34
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
35
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
36
+ const LINKING_ERROR = `The package 'theta-client-react-native' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
37
+ ios: "- You have run 'pod install'\n",
38
+ default: ''
39
+ }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
40
+ const ThetaClientReactNative = _reactNative.NativeModules.ThetaClientReactNative ? _reactNative.NativeModules.ThetaClientReactNative : new Proxy({}, {
41
+ get() {
42
+ throw new Error(LINKING_ERROR);
43
+ }
44
+ });
45
+
46
+ /** Static attributes of Theta. */
47
+
48
+ /** Battery charging state constants */
49
+ const ChargingStateEnum = {
50
+ /** Charging */
51
+ CHARGING: 'CHARGING',
52
+ /** Charging completed */
53
+ COMPLETED: 'COMPLETED',
54
+ /** Not charging */
55
+ NOT_CHARGING: 'NOT_CHARGING'
56
+ };
57
+
58
+ /** type definition of ChargingStateEnum */
59
+ exports.ChargingStateEnum = ChargingStateEnum;
60
+ /** File type in Theta. */
61
+ const FileTypeEnum = {
62
+ /** still image files. */
63
+ IMAGE: 'IMAGE',
64
+ /** video files. */
65
+ VIDEO: 'VIDEO',
66
+ /** all files. */
67
+ ALL: 'ALL'
68
+ };
69
+
70
+ /** type definition of FileTypeEnum */
71
+ exports.FileTypeEnum = FileTypeEnum;
72
+ /** Aperture value. */
73
+ const ApertureEnum = {
74
+ /** AUTO(0) */
75
+ APERTURE_AUTO: 'APERTURE_AUTO',
76
+ /** 2.0F RICOH THETA V or prior */
77
+ APERTURE_2_0: 'APERTURE_2_0',
78
+ /** 2.1F RICOH THETA Z1 and the exposure program (exposureProgram) is set to Manual or Aperture Priority */
79
+ APERTURE_2_1: 'APERTURE_2_1',
80
+ /** 2.4F RICOH THETA X or later */
81
+ APERTURE_2_4: 'APERTURE_2_4',
82
+ /** 3.5F RICOH THETA Z1 and the exposure program (exposureProgram) is set to Manual or Aperture Priority */
83
+ APERTURE_3_5: 'APERTURE_3_5',
84
+ /** 5.6F RICOH THETA Z1 and the exposure program (exposureProgram) is set to Manual or Aperture Priority */
85
+ APERTURE_5_6: 'APERTURE_5_6'
86
+ };
87
+
88
+ /** type definition of ApertureEnum */
89
+ exports.ApertureEnum = ApertureEnum;
90
+ /** Shooting mode. */
91
+ const CaptureModeEnum = {
92
+ /** Still image capture mode */
93
+ IMAGE: 'IMAGE',
94
+ /** Video capture mode */
95
+ VIDEO: 'VIDEO'
96
+ };
97
+
98
+ /** type definition of CaptureModeEnum */
99
+ exports.CaptureModeEnum = CaptureModeEnum;
100
+ /** Exposure compensation (EV). */
101
+ const ExposureCompensationEnum = {
102
+ /** -2.0 */
103
+ M_2_0: 'M_2_0',
104
+ /** -1.7 */
105
+ M_1_7: 'M_1_7',
106
+ /** -1.3 */
107
+ M_1_3: 'M_1_3',
108
+ /** -1.0 */
109
+ M_1_0: 'M_1_0',
110
+ /** -0.7 */
111
+ M_0_7: 'M_0_7',
112
+ /** -0.3 */
113
+ M_0_3: 'M_0_3',
114
+ /** 0 */
115
+ ZERO: 'ZERO',
116
+ /** 0.3 */
117
+ P_0_3: 'P_0_3',
118
+ /** 0.7 */
119
+ P_0_7: 'P_0_7',
120
+ /** 1.0 */
121
+ P_1_0: 'P_1_0',
122
+ /** 1.3 */
123
+ P_1_3: 'P_1_3',
124
+ /** 1.7 */
125
+ P_1_7: 'P_1_7',
126
+ /** 2.0 */
127
+ P_2_0: 'P_2_0'
128
+ };
129
+
130
+ /** type definition of ExposureCompensationEnum */
131
+ exports.ExposureCompensationEnum = ExposureCompensationEnum;
132
+ /** Operating time (sec.) of the self-timer. */
133
+ const ExposureDelayEnum = {
134
+ /** Disable self-timer. */
135
+ DELAY_OFF: 'DELAY_OFF',
136
+ /** a second */
137
+ DELAY_1: 'DELAY_1',
138
+ /** 2 seconds */
139
+ DELAY_2: 'DELAY_2',
140
+ /** 3 seconds */
141
+ DELAY_3: 'DELAY_3',
142
+ /** 4 seconds */
143
+ DELAY_4: 'DELAY_4',
144
+ /** 5 seconds */
145
+ DELAY_5: 'DELAY_5',
146
+ /** 6 seconds */
147
+ DELAY_6: 'DELAY_6',
148
+ /** 7 seconds */
149
+ DELAY_7: 'DELAY_7',
150
+ /** 8 seconds */
151
+ DELAY_8: 'DELAY_8',
152
+ /** 9 seconds */
153
+ DELAY_9: 'DELAY_9',
154
+ /** 10 seconds */
155
+ DELAY_10: 'DELAY_10'
156
+ };
157
+
158
+ /** type definition of ExposureDelayEnum */
159
+ exports.ExposureDelayEnum = ExposureDelayEnum;
160
+ /** Exposure program. The exposure settings that take priority can be selected. */
161
+ const ExposureProgramEnum = {
162
+ /** Manual program */
163
+ MANUAL: 'MANUAL',
164
+ /** Normal program */
165
+ NORMAL_PROGRAM: 'NORMAL_PROGRAM',
166
+ /** Aperture priority program */
167
+ APERTURE_PRIORITY: 'APERTURE_PRIORITY',
168
+ /** Shutter priority program */
169
+ SHUTTER_PRIORITY: 'SHUTTER_PRIORITY',
170
+ /** ISO priority program */
171
+ ISO_PRIORITY: 'ISO_PRIORITY'
172
+ };
173
+
174
+ /** type definition of ExposureProgramEnum */
175
+ exports.ExposureProgramEnum = ExposureProgramEnum;
176
+ /** file format type in theta */
177
+ const FileFormatTypeEnum = {
178
+ /** jpeg image */
179
+ JPEG: 'JPEG',
180
+ /** mp4 video */
181
+ MP4: 'MP4',
182
+ /** raw+ image */
183
+ RAW: 'RAW'
184
+ };
185
+
186
+ /** type definition of FileFormatTypeEnum */
187
+ exports.FileFormatTypeEnum = FileFormatTypeEnum;
188
+ /** Photo image format */
189
+ const PhotoFileFormatEnum = {
190
+ /** jpeg 2048 x 1024 */
191
+ IMAGE_2K: 'IMAGE_2K',
192
+ /** jpeg 5376 x 2688 */
193
+ IMAGE_5K: 'IMAGE_5K',
194
+ /** jpeg 6720 x 3360 */
195
+ IMAGE_6_7K: 'IMAGE_6_7K',
196
+ /** row+ 6720 x 3360 */
197
+ RAW_P_6_7K: 'RAW_P_6_7K',
198
+ /** jpeg 5504 x 2752 */
199
+ IMAGE_5_5K: 'IMAGE_5_5K',
200
+ /** jpeg 11008 x 5504 */
201
+ IMAGE_11K: 'IMAGE_11K'
202
+ };
203
+
204
+ /** Video image format */
205
+ exports.PhotoFileFormatEnum = PhotoFileFormatEnum;
206
+ const VideoFileFormatEnum = {
207
+ /** mp4 1280 x 570 */
208
+ VIDEO_HD: 'VIDEO_HD',
209
+ /** mp4 1920 x 1080 */
210
+ VIDEO_FULL_HD: 'VIDEO_FULL_HD',
211
+ /** mp4 1920 x 960 */
212
+ VIDEO_2K: 'VIDEO_2K',
213
+ /** mp4 3840 x 1920 */
214
+ VIDEO_4K: 'VIDEO_4K',
215
+ /** mp4 1920 x 960 30fps */
216
+ VIDEO_2K_30F: 'VIDEO_2K_30F',
217
+ /** mp4 1920 x 960 60fps */
218
+ VIDEO_2K_60F: 'VIDEO_2K_60F',
219
+ /** mp4 3840 x 1920 30fps */
220
+ VIDEO_4K_30F: 'VIDEO_4K_30F',
221
+ /** mp4 3840 x 1920 60fps */
222
+ VIDEO_4K_60F: 'VIDEO_4K_60F',
223
+ /** mp4 5760 x 2880 2fps */
224
+ VIDEO_5_7K_2F: 'VIDEO_5_7K_2F',
225
+ /** mp4 5760 x 2880 5fps */
226
+ VIDEO_5_7K_5F: 'VIDEO_5_7K_5F',
227
+ /** mp4 5760 x 2880 30fps */
228
+ VIDEO_5_7K_30F: 'VIDEO_5_7K_30F',
229
+ /** mp4 7680 x 3840 2fps */
230
+ VIDEO_7K_2F: 'VIDEO_7K_2F',
231
+ /** mp4 7680 x 3840 5fps */
232
+ VIDEO_7K_5F: 'VIDEO_7K_5F',
233
+ /** mp4 7680 x 3840 10fps */
234
+ VIDEO_7K_10F: 'VIDEO_7K_10F'
235
+ };
236
+
237
+ /** type definition of PhotoFileFormatEnum */
238
+ exports.VideoFileFormatEnum = VideoFileFormatEnum;
239
+ /** Image processing filter. */
240
+ const FilterEnum = {
241
+ /** No filter. */
242
+ OFF: 'OFF',
243
+ /** Noise reduction. */
244
+ NOISE_REDUCTION: 'NOISE_REDUCTION',
245
+ /** HDR. */
246
+ HDR: 'HDR'
247
+ };
248
+
249
+ /** type definition of FilterEnum */
250
+ exports.FilterEnum = FilterEnum;
251
+ /** Turns position information assigning ON/OFF. */
252
+ const GpsTagRecordingEnum = {
253
+ /** Position information assigning ON. */
254
+ ON: 'ON',
255
+ /** Position information assigning OFF. */
256
+ OFF: 'OFF'
257
+ };
258
+
259
+ /** type definition of GpsTagRecordingEnum */
260
+ exports.GpsTagRecordingEnum = GpsTagRecordingEnum;
261
+ /** ISO sensitivity. */
262
+ const IsoEnum = {
263
+ /** AUTO (0) */
264
+ ISO_AUTO: 'ISO_AUTO',
265
+ /** 50 */
266
+ ISO_50: 'ISO_50',
267
+ /** 64 */
268
+ ISO_64: 'ISO_64',
269
+ /** 80 */
270
+ ISO_80: 'ISO_80',
271
+ /** 100 */
272
+ ISO_100: 'ISO_100',
273
+ /** 125 */
274
+ ISO_125: 'ISO_125',
275
+ /** 160 */
276
+ ISO_160: 'ISO_160',
277
+ /** 200 */
278
+ ISO_200: 'ISO_200',
279
+ /** 250 */
280
+ ISO_250: 'ISO_250',
281
+ /** 320 */
282
+ ISO_320: 'ISO_320',
283
+ /** 400 */
284
+ ISO_400: 'ISO_400',
285
+ /** 500 */
286
+ ISO_500: 'ISO_500',
287
+ /** 640 */
288
+ ISO_640: 'ISO_640',
289
+ /** 800 */
290
+ ISO_800: 'ISO_800',
291
+ /** 1000 */
292
+ ISO_1000: 'ISO_1000',
293
+ /** 1250 */
294
+ ISO_1250: 'ISO_1250',
295
+ /** 1600 */
296
+ ISO_1600: 'ISO_1600',
297
+ /** 2000 */
298
+ ISO_2000: 'ISO_2000',
299
+ /** 2500 */
300
+ ISO_2500: 'ISO_2500',
301
+ /** 3200 */
302
+ ISO_3200: 'ISO_3200',
303
+ /** 4000 */
304
+ ISO_4000: 'ISO_4000',
305
+ /** 5000 */
306
+ ISO_5000: 'ISO_5000',
307
+ /** 6400 */
308
+ ISO_6400: 'ISO_6400'
309
+ };
310
+
311
+ /** type definition IsoEnum */
312
+ exports.IsoEnum = IsoEnum;
313
+ /** ISO sensitivity upper limit when ISO sensitivity is set to automatic. */
314
+ const IsoAutoHighLimitEnum = {
315
+ /** 100 */
316
+ ISO_100: 'ISO_100',
317
+ /** 125 */
318
+ ISO_125: 'ISO_125',
319
+ /** 160 */
320
+ ISO_160: 'ISO_160',
321
+ /** 200 */
322
+ ISO_200: 'ISO_200',
323
+ /** 250 */
324
+ ISO_250: 'ISO_250',
325
+ /** 320 */
326
+ ISO_320: 'ISO_320',
327
+ /** 400 */
328
+ ISO_400: 'ISO_400',
329
+ /** 500 */
330
+ ISO_500: 'ISO_500',
331
+ /** 640 */
332
+ ISO_640: 'ISO_640',
333
+ /** 800 */
334
+ ISO_800: 'ISO_800',
335
+ /** 1000 */
336
+ ISO_1000: 'ISO_1000',
337
+ /** 1250 */
338
+ ISO_1250: 'ISO_1250',
339
+ /** 1600 */
340
+ ISO_1600: 'ISO_1600',
341
+ /** 2000 */
342
+ ISO_2000: 'ISO_2000',
343
+ /** 2500 */
344
+ ISO_2500: 'ISO_2500',
345
+ /** 3200 */
346
+ ISO_3200: 'ISO_3200',
347
+ /** 4000 */
348
+ ISO_4000: 'ISO_4000',
349
+ /** 5000 */
350
+ ISO_5000: 'ISO_5000',
351
+ /** 6400 */
352
+ ISO_6400: 'ISO_6400'
353
+ };
354
+
355
+ /** type definition of IsoAutoHighLimitEnum */
356
+ exports.IsoAutoHighLimitEnum = IsoAutoHighLimitEnum;
357
+ /** language */
358
+ const LanguageEnum = {
359
+ /** german */
360
+ DE: 'DE',
361
+ /** british english */
362
+ EN_GB: 'EN_GB',
363
+ /** us english */
364
+ EN_US: 'EN_US',
365
+ /** french */
366
+ FR: 'FR',
367
+ /** italian */
368
+ IT: 'IT',
369
+ /** japanese */
370
+ JA: 'JA',
371
+ /** korean */
372
+ KO: 'KO',
373
+ /** chinese */
374
+ ZH_CN: 'ZH_CH',
375
+ /** taiwan chinese */
376
+ ZH_TW: 'ZH_TW'
377
+ };
378
+
379
+ /** type definition of LanguageEnum */
380
+ exports.LanguageEnum = LanguageEnum;
381
+ /** Maximum recordable time (in seconds) of the camera */
382
+ const MaxRecordableTimeEnum = {
383
+ /** 180 seconds for SC2 only. */
384
+ RECORDABLE_TIME_180: 'RECORDABLE_TIME_180',
385
+ /** 300 seconds for other than SC2. */
386
+ RECORDABLE_TIME_300: 'RECORDABLE_TIME_300',
387
+ /** 1500 seconds for other than SC2. */
388
+ RECORDABLE_TIME_1500: 'RECORDABLE_TIME_1500'
389
+ };
390
+
391
+ /** type definition of MaxRecordableTimeEnum */
392
+ exports.MaxRecordableTimeEnum = MaxRecordableTimeEnum;
393
+ /** Length of standby time before the camera automatically powers OFF. */
394
+ const OffDelayEnum = {
395
+ /** Do not turn power off. */
396
+ DISABLE: 'DISABLE',
397
+ /** Power off after 5 minutes.(300sec) */
398
+ OFF_DELAY_5M: 'OFF_DELAY_5M',
399
+ /** Power off after 10 minutes.(600sec) */
400
+ OFF_DELAY_10M: 'OFF_DELAY_10M',
401
+ /** Power off after 15 minutes.(900sec) */
402
+ OFF_DELAY_15M: 'OFF_DELAY_15M',
403
+ /** Power off after 30 minutes.(1,800sec) */
404
+ OFF_DELAY_30M: 'OFF_DELAY_30M'
405
+ };
406
+
407
+ /** type definition of OffDelayEnum */
408
+ exports.OffDelayEnum = OffDelayEnum;
409
+ /** Length of standby time before the camera enters the sleep mode. */
410
+ const SleepDelayEnum = {
411
+ /** Do not turn sleep mode. */
412
+ DISABLE: 'DISABLE',
413
+ /** sleep mode after 3 minutes.(180seconds) */
414
+ SLEEP_DELAY_3M: 'SLEEP_DELAY_3M',
415
+ /** sleep mode after 5 minutes.(300seconds) */
416
+ SLEEP_DELAY_5M: 'SLEEP_DELAY_5M',
417
+ /** sleep mode after 7 minutes.(420seconds) */
418
+ SLEEP_DELAY_7M: 'SLEEP_DELAY_7M',
419
+ /** sleep mode after 10 minutes.(600seconds) */
420
+ SLEEP_DELAY_10M: 'SLEEP_DELAY_10M'
421
+ };
422
+
423
+ /** type definition of SleepDelayEnum */
424
+ exports.SleepDelayEnum = SleepDelayEnum;
425
+ /** White balance. */
426
+ const WhiteBalanceEnum = {
427
+ /** Automatic */
428
+ AUTO: 'AUTO',
429
+ /** Outdoor */
430
+ DAYLIGHT: 'DAYLIGHT',
431
+ /** Shade */
432
+ SHADE: 'SHADE',
433
+ /** Cloudy */
434
+ CLOUDY_DAYLIGHT: 'CLOUDY_DAYLIGHT',
435
+ /** Incandescent light 1 */
436
+ INCANDESCENT: 'INCANDESCENT',
437
+ /** Incandescent light 2 */
438
+ WARM_WHITE_FLUORESCENT: 'WARM_WHITE_FLUORESCENT',
439
+ /** Fluorescent light 1 (daylight) */
440
+ DAYLIGHT_FLUORESCENT: 'DAYLIGHT_FLUORESCENT',
441
+ /** Fluorescent light 2 (natural white) */
442
+ DAYWHITE_FLUORESCENT: 'DAYWHITE_FLUORESCENT',
443
+ /** Fluorescent light 3 (white) */
444
+ FLUORESCENT: 'FLUORESCENT',
445
+ /** Fluorescent light 4 (light bulb color) */
446
+ BULB_FLUORESCENT: 'BULB_FLUORESCENT',
447
+ /** CT settings (specified by the _colorTemperature option) */
448
+ COLOR_TEMPERATURE: 'COLOR_TEMPERATURE',
449
+ /** Underwater */
450
+ UNDERWATER: 'UNDERWATER'
451
+ };
452
+
453
+ /** type definition of WhiteBalanceEnum */
454
+ exports.WhiteBalanceEnum = WhiteBalanceEnum;
455
+ /** Camera setting options name. */
456
+ const OptionNameEnum = {
457
+ /** aperture */
458
+ Aperture: 'Aperture',
459
+ /** captureMode */
460
+ CaptureMode: 'CaptureMode',
461
+ /** colorTemperature */
462
+ ColorTemperature: 'ColorTemperature',
463
+ /** dateTimeZone */
464
+ DateTimeZone: 'DateTimeZone',
465
+ /** exposureCompensation */
466
+ ExposureCompensation: 'ExposureCompensation',
467
+ /** exposureDelay */
468
+ ExposureDelay: 'ExposureDelay',
469
+ /** exposureProgram */
470
+ ExposureProgram: 'ExposureProgram',
471
+ /** fileFormat */
472
+ FileFormat: 'FileFormat',
473
+ /** filter */
474
+ Filter: 'Filter',
475
+ /** gpsInfo */
476
+ GpsInfo: 'GpsInfo',
477
+ /** isGpsOn */
478
+ IsGpsOn: 'IsGpsOn',
479
+ /** iso */
480
+ Iso: 'Iso',
481
+ /** isoAutoHighLimit */
482
+ IsoAutoHighLimit: 'IsoAutoHighLimit',
483
+ /** language */
484
+ Language: 'Language',
485
+ /** maxRecordableTime */
486
+ MaxRecordableTime: 'MaxRecordableTime',
487
+ /** offDelay */
488
+ OffDelay: 'OffDelay',
489
+ /** sleepDelay */
490
+ SleepDelay: 'SleepDelay',
491
+ /** remainingPictures */
492
+ RemainingPictures: 'RemainingPictures',
493
+ /** remainingVideoSeconds */
494
+ RemainingVideoSeconds: 'RemainingVideoSeconds',
495
+ /** remainingSpace */
496
+ RemainingSpace: 'RemainingSpace',
497
+ /** totalSpace */
498
+ TotalSpace: 'TotalSpace',
499
+ /** shutterVolume */
500
+ ShutterVolume: 'ShutterVolume',
501
+ /** whiteBalance */
502
+ WhiteBalance: 'WhiteBalance'
503
+ };
504
+
505
+ /** type definition of OptionNameEnum */
506
+ exports.OptionNameEnum = OptionNameEnum;
507
+ /**
508
+ * initialize theta client sdk
509
+ *
510
+ * @function initialize
511
+ * @param {string} endPoint optional endpoint of camera
512
+ * @return promise of boolean result
513
+ **/
514
+ function initialize(endPoint) {
515
+ if (!endPoint) {
516
+ endPoint = 'http://192.168.1.1';
517
+ }
518
+ return ThetaClientReactNative.initialize(endPoint);
519
+ }
520
+
521
+ /**
522
+ * Get basic information about Theta.
523
+ *
524
+ * @function getThetaInfo
525
+ * @return promise of ThetaInfo
526
+ **/
527
+ function getThetaInfo() {
528
+ return ThetaClientReactNative.getThetaInfo();
529
+ }
530
+
531
+ /**
532
+ * Get current state of Theta.
533
+ *
534
+ * @function getThetaState
535
+ * @return promise of ThetaState
536
+ **/
537
+ function getThetaState() {
538
+ return ThetaClientReactNative.getThetaState();
539
+ }
540
+
541
+ /**
542
+ * Lists information of images and videos in Theta.
543
+ *
544
+ * @function listFiles
545
+ * @param {FileTypeEnum} fileType Type of the files to be listed.
546
+ * @param {number} startPosition The position of the first file to be
547
+ * returned in the list. 0 represents the first file. If
548
+ * startPosition is larger than the position of the last file, an
549
+ * empty list is returned.
550
+ * @param {number} entryCount Desired number of entries to return. If
551
+ * entryCount is more than the number of remaining files, just
552
+ * return entries of actual remaining files.
553
+ * @return promise of A list of file information.
554
+ */
555
+ function listFiles(fileTypeEnum) {
556
+ let startPosition = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
557
+ let entryCount = arguments.length > 2 ? arguments[2] : undefined;
558
+ return ThetaClientReactNative.listFiles(fileTypeEnum, startPosition, entryCount);
559
+ }
560
+
561
+ /**
562
+ * Delete files in Theta.
563
+ *
564
+ * @function deleteFiles
565
+ * @param {[string]} fileUrls URLs of the file to be deleted.
566
+ * @return promise of boolean result
567
+ */
568
+ function deleteFiles(fileUrls) {
569
+ return ThetaClientReactNative.deleteFiles(fileUrls);
570
+ }
571
+
572
+ /**
573
+ * Delete all files in Theta.
574
+ *
575
+ * @function deleteAllFiles
576
+ * @return promise of boolean result
577
+ */
578
+ function deleteAllFiles() {
579
+ return ThetaClientReactNative.deleteAllFiles();
580
+ }
581
+
582
+ /**
583
+ * Delete all image files in Theta.
584
+ *
585
+ * @function deleteAllImageFiles
586
+ * @return promise of boolean result
587
+ */
588
+ function deleteAllImageFiles() {
589
+ return ThetaClientReactNative.deleteAllImageFiles();
590
+ }
591
+
592
+ /**
593
+ * Delete all video files in Theta.
594
+ *
595
+ * @function deleteAllVideoFiles
596
+ * @return promise of boolean result
597
+ */
598
+ function deleteAllVideoFiles() {
599
+ return ThetaClientReactNative.deleteAllVideoFiles();
600
+ }
601
+
602
+ /**
603
+ * Acquires the properties and property support specifications for
604
+ * shooting, the camera, etc.
605
+ *
606
+ * @function getOptions
607
+ * @param {[OptionNameEnum]} optionNames List of OptionNameEnum.
608
+ * @return promise of Options acquired
609
+ */
610
+ function getOptions(optionNames) {
611
+ return ThetaClientReactNative.getOptions(optionNames);
612
+ }
613
+
614
+ /**
615
+ * Property settings for shooting, the camera, etc.
616
+ *
617
+ * @function setOptions
618
+ * @param {Options} options Camera setting options.
619
+ * @return promise of boolean result
620
+ */
621
+ function setOptions(options) {
622
+ return ThetaClientReactNative.setOptions(options);
623
+ }
624
+
625
+ /** theta frame event name */
626
+ const THETA_EVENT_NAME = ThetaClientReactNative.DEFAULT_EVENT_NAME;
627
+
628
+ /**
629
+ * Start live preview.
630
+ * preview frame (JPEG DataURL) send THETA_EVENT_NAME event as
631
+ * {
632
+ * "data": "DataURL of JPEG Frame"
633
+ * }
634
+ *
635
+ * @function StartLivePreview
636
+ * @return promise of boolean result
637
+ */
638
+ exports.THETA_EVENT_NAME = THETA_EVENT_NAME;
639
+ function getLivePreview() {
640
+ return ThetaClientReactNative.getLivePreview();
641
+ }
642
+
643
+ /**
644
+ * Stop live preview.
645
+ *
646
+ * @function StopLivePreview
647
+ */
648
+ function stopLivePreview() {
649
+ ThetaClientReactNative.stopLivePreview();
650
+ }
651
+
652
+ /**
653
+ * PhotoCapture class
654
+ */
655
+ class PhotoCapture {
656
+ /**
657
+ * @return promise of token file url
658
+ */
659
+ takePicture() {
660
+ return ThetaClientReactNative.takePicture();
661
+ }
662
+ }
663
+
664
+ /**
665
+ * Capture Builder class
666
+ */
667
+ exports.PhotoCapture = PhotoCapture;
668
+ class CaptureBuilder {
669
+ /** capture options */
670
+
671
+ /** construct capture builder instance */
672
+ constructor() {
673
+ _defineProperty(this, "options", void 0);
674
+ this.options = {};
675
+ }
676
+
677
+ /**
678
+ * Set aperture value.
679
+ * @param {ApertureEnum} aperture aperture value to set
680
+ * @return CaptureBuilder
681
+ */
682
+ setAperture(aperture) {
683
+ this.options.aperture = aperture;
684
+ return this;
685
+ }
686
+
687
+ /**
688
+ * Set color temperature of the camera (Kelvin).
689
+ * @param {number} kelvin Color temperature to set
690
+ * @return CaptureBuilder
691
+ */
692
+ setColorTemperature(kelvin) {
693
+ this.options.colorTemperature = kelvin;
694
+ return this;
695
+ }
696
+
697
+ /**
698
+ * Set exposure compensation (EV).
699
+ * @param {ExposureCompensationEnum} value Exposure compensation to set
700
+ * @return CaptureBuilder
701
+ */
702
+ setExposureCompensation(value) {
703
+ this.options.exposureCompensation = value;
704
+ return this;
705
+ }
706
+
707
+ /**
708
+ * Set operating time (sec.) of the self-timer.
709
+ * @param {ExposureDelayEnum} delay Operating time to set
710
+ * @return CaptureBuilder
711
+ */
712
+ setExposureDelay(delay) {
713
+ this.options.exposureDelay = delay;
714
+ return this;
715
+ }
716
+
717
+ /**
718
+ * Set exposure program. The exposure settings that take priority can be selected.
719
+ * @param {ExposureProgramEnum} program Exposure program to set
720
+ * @return CaptureBuilder
721
+ */
722
+ setExposureProgram(program) {
723
+ this.options.exposureProgram = program;
724
+ return this;
725
+ }
726
+ /**
727
+ * Set GPS information.
728
+ * @param {GpsInfo} gpsInfo GPS information to set
729
+ * @return CaptureBuilder
730
+ */
731
+ setGpsInfo(gpsInfo) {
732
+ this.options.gpsInfo = gpsInfo;
733
+ return this;
734
+ }
735
+
736
+ /**
737
+ * Set turns position information assigning ON/OFF.
738
+ * @param {GpsTagRecordingEnum} value Turns position information assigning ON/OFF to set
739
+ * @return CaptureBuilder
740
+ */
741
+ setGpsTagRecording(value) {
742
+ this.options._gpsTagRecording = value;
743
+ return this;
744
+ }
745
+
746
+ /**
747
+ * Set ISO sensitivity.
748
+ * @param {IsoEnum} iso ISO sensitivity to set
749
+ * @return CaptureBuilder
750
+ */
751
+ setIso(iso) {
752
+ this.options.iso = iso;
753
+ return this;
754
+ }
755
+
756
+ /**
757
+ * Set ISO sensitivity upper limit when ISO sensitivity is set to automatic.
758
+ * @param {IsoAutoHighLimitEnum} iso ISO sensitivity upper limit to set
759
+ * @return CaptureBuilder
760
+ */
761
+ setIsoAutoHighLimit(iso) {
762
+ this.options.isoAutoHighLimit = iso;
763
+ return this;
764
+ }
765
+
766
+ /**
767
+ * Set white balance.
768
+ * @param {WhiteBalanceEnum} whiteBalance White balance to set
769
+ * @return CaptureBuilder
770
+ */
771
+ setWhiteBalance(whiteBalance) {
772
+ this.options.whiteBalance = whiteBalance;
773
+ return this;
774
+ }
775
+ }
776
+
777
+ /**
778
+ * PhotoCaptureBuilder class
779
+ */
780
+ exports.CaptureBuilder = CaptureBuilder;
781
+ class PhotoCaptureBuilder extends CaptureBuilder {
782
+ /** construct PhotoCaptureBuilder instance */
783
+ constructor() {
784
+ super();
785
+ }
786
+
787
+ /**
788
+ * Set photo file format.
789
+ * @param {PhotoFileFormatEnum} fileFormat Photo file format to set
790
+ * @return PhotoCaptureBuilder
791
+ */
792
+ setFileFormat(fileFormat) {
793
+ this.options.fileFormat = fileFormat;
794
+ return this;
795
+ }
796
+
797
+ /**
798
+ * Set image processing filter.
799
+ * @param {FilterEnum} filter Image processing filter to set
800
+ * @return PhotoCaptureBuilder
801
+ */
802
+ setFilter(filter) {
803
+ this.options.filter = filter;
804
+ return this;
805
+ }
806
+
807
+ /**
808
+ * Builds an instance of a PhotoCapture that has all the combined
809
+ * parameters of the Options that have been added to the Builder.
810
+ *
811
+ * @return promise of PhotoCapture instance
812
+ */
813
+ build() {
814
+ return ThetaClientReactNative.buildPhotoCapture(this.options).then(() => new PhotoCapture());
815
+ }
816
+ }
817
+
818
+ /**
819
+ * Get PhotoCaptureBuilder for take a picture.
820
+ *
821
+ * @function getPhotoCaptureBuilder
822
+ * @return created PhotoCaptureBuilder
823
+ */
824
+ exports.PhotoCaptureBuilder = PhotoCaptureBuilder;
825
+ function getPhotoCaptureBuilder() {
826
+ ThetaClientReactNative.getPhotoCaptureBuilder();
827
+ return new PhotoCaptureBuilder();
828
+ }
829
+
830
+ /**
831
+ * VideoCapture class
832
+ */
833
+ class VideoCapture {
834
+ /**
835
+ * start video capture
836
+ * @return promise of captured file url
837
+ */
838
+ startCapture() {
839
+ return ThetaClientReactNative.startCapture();
840
+ }
841
+ /**
842
+ * stop video capture
843
+ */
844
+ stopCapture() {
845
+ ThetaClientReactNative.stopCapture();
846
+ }
847
+ }
848
+
849
+ /**
850
+ * VideoCaptureBuilder class
851
+ */
852
+ exports.VideoCapture = VideoCapture;
853
+ class VideoCaptureBuilder extends CaptureBuilder {
854
+ /** construct VideoCaptureBuilder instance */
855
+ constructor() {
856
+ super();
857
+ }
858
+
859
+ /**
860
+ * Set video file format.
861
+ * @param {VideoFileFormatEnum} fileFormat Video file format to set
862
+ * @return VideoCaptureBuilder
863
+ */
864
+ setFileFormat(fileFormat) {
865
+ this.options.fileFormat = fileFormat;
866
+ return this;
867
+ }
868
+
869
+ /**
870
+ * Set maximum recordable time (in seconds) of the camera.
871
+ * @param {MaxRecordableTimeEnum} time Maximum recordable time to set
872
+ * @return VideoCaptureBuilder
873
+ */
874
+ setMaxRecordableTime(time) {
875
+ this.options.maxRecordableTime = time;
876
+ return this;
877
+ }
878
+
879
+ /**
880
+ * Builds an instance of a VideoCapture that has all the combined
881
+ * parameters of the Options that have been added to the Builder.
882
+ *
883
+ * @return promise of VideoCapture instance
884
+ */
885
+ build() {
886
+ return ThetaClientReactNative.buildVideoCapture(this.options).then(() => new VideoCapture());
887
+ }
888
+ }
889
+
890
+ /**
891
+ * Get PhotoCapture.Builder for capture video.
892
+ *
893
+ * @function getVideoCaptureBuilder
894
+ * @return created VideoCaptureBuilder instance
895
+ */
896
+ exports.VideoCaptureBuilder = VideoCaptureBuilder;
897
+ function getVideoCaptureBuilder() {
898
+ ThetaClientReactNative.getVideoCaptureBuilder();
899
+ return new VideoCaptureBuilder();
900
+ }
901
+
902
+ /**
903
+ * exif information
904
+ */
905
+
906
+ /**
907
+ * Get metadata of a still image
908
+ *
909
+ * @function getMetadata
910
+ * @param {string} fileUrl URL of a still image file to get metadata
911
+ * @return promise of MetaInfo
912
+ */
913
+ function getMetadata(fileUrl) {
914
+ return ThetaClientReactNative.getMetadata(fileUrl);
915
+ }
916
+
917
+ /**
918
+ * Reset all device settings and capture settings.
919
+ * After reset, the camera will be restarted.
920
+ *
921
+ * @function reset
922
+ * @return promise of boolean result
923
+ */
924
+ function reset() {
925
+ return ThetaClientReactNative.reset();
926
+ }
927
+
928
+ /**
929
+ * Restore setting to THETA
930
+ *
931
+ * @function restoreSettings
932
+ * @return promise of boolean result
933
+ */
934
+ function restoreSettings() {
935
+ return ThetaClientReactNative.restoreSettings();
936
+ }
937
+
938
+ /**
939
+ * Stop running self-timer.
940
+ *
941
+ * @function stopSelfTimer
942
+ * @return promise of boolean result
943
+ */
944
+ function stopSelfTimer() {
945
+ return ThetaClientReactNative.stopSelfTimer();
946
+ }
947
+
948
+ /**
949
+ * Converts the movie format of a saved movie.
950
+ *
951
+ * @function convertVideoFormats
952
+ * @param {string} fileUrl URL of a saved movie file to convert
953
+ * @param {boolean} toLowResolution If true generates lower resolution
954
+ * video, otherwise same resolution.
955
+ * @param {boolean} applyTopBottomCorrection apply Top/bottom
956
+ * correction. This parameter is ignored on Theta X.
957
+ * @return promise of URL of a converted movie file.
958
+ */
959
+ function convertVideoFormats(fileUrl, toLowResolution, applyTopBottomCorrection) {
960
+ return ThetaClientReactNative.convertVideoFormats(fileUrl, toLowResolution, applyTopBottomCorrection);
961
+ }
962
+
963
+ /**
964
+ * Cancels the movie format conversion.
965
+ *
966
+ * @function cancelVideoConvert
967
+ * @return promise of boolean result
968
+ */
969
+ function cancelVideoConvert() {
970
+ return ThetaClientReactNative.cancelVideoConvert();
971
+ }
972
+
973
+ /**
974
+ * Turns the wireless LAN off.
975
+ *
976
+ * @function finishWlan
977
+ * @return promise of boolean result
978
+ */
979
+ function finishWlan() {
980
+ return ThetaClientReactNative.finishWlan();
981
+ }
982
+
983
+ /**
984
+ * Enum for authentication mode.
985
+ */
986
+ const AuthModeEnum = {
987
+ /** None of authentication */
988
+ NONE: 'NONE',
989
+ /** Wep authentication */
990
+ WEP: 'WEP',
991
+ /** WPA PSK or WPA2 PSK authentication */
992
+ WPA: 'WPA'
993
+ };
994
+
995
+ /** type definition of AuthModeEnum */
996
+ exports.AuthModeEnum = AuthModeEnum;
997
+ /**
998
+ * Acquires the access point list used in client mode.
999
+ *
1000
+ * @function listAccessPoints
1001
+ * @return promise of AccessPoint list
1002
+ */
1003
+ function listAccessPoints() {
1004
+ return ThetaClientReactNative.listAccessPoints();
1005
+ }
1006
+
1007
+ /**
1008
+ * Set access point. IP address is set dynamically.
1009
+ *
1010
+ * @function setAccessPointDynamically
1011
+ * @param {string} ssid SSID of the access point.
1012
+ * @param {boolean} ssidStealth true if SSID stealth is enabled.
1013
+ * @param {AuthModeEnum} authMode Authentication mode.
1014
+ * @param {string} password Password. If authMode is "NONE", pass empty String.
1015
+ * @param {number} connectionPriority Connection priority 1 to 5.
1016
+ * @return promise of boolean result
1017
+ */
1018
+ function setAccessPointDynamically(ssid) {
1019
+ let ssidStealth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1020
+ let authMode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : AuthModeEnum.NONE;
1021
+ let password = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
1022
+ let connectionPriority = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
1023
+ return ThetaClientReactNative.setAccessPointDynamically(ssid, ssidStealth, authMode, password, connectionPriority);
1024
+ }
1025
+
1026
+ /**
1027
+ * Set access point. IP address is set statically.
1028
+ *
1029
+ * @function setAccessPointStatically
1030
+ * @param {string} ssid SSID of the access point.
1031
+ * @param {boolean} ssidStealth True if SSID stealth is enabled.
1032
+ * @param {AuthModeEnum} authMode Authentication mode.
1033
+ * @param {string} password Password. If authMode is "NONE", pass empty String.
1034
+ * @param {number} connectionPriority Connection priority 1 to 5.
1035
+ * @param {string} ipAddress IP address assigns to Theta.
1036
+ * @param {string} subnetMask Subnet mask.
1037
+ * @param {string} defaultGateway Default gateway.
1038
+ * @return promise of boolean result
1039
+ */
1040
+ function setAccessPointStatically(ssid) {
1041
+ let ssidStealth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1042
+ let authMode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : AuthModeEnum.NONE;
1043
+ let password = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
1044
+ let connectionPriority = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
1045
+ let ipAddress = arguments.length > 5 ? arguments[5] : undefined;
1046
+ let subnetMask = arguments.length > 6 ? arguments[6] : undefined;
1047
+ let defaultGateway = arguments.length > 7 ? arguments[7] : undefined;
1048
+ return ThetaClientReactNative.setAccessPointStatically(ssid, ssidStealth, authMode, password, connectionPriority, ipAddress, subnetMask, defaultGateway);
1049
+ }
1050
+
1051
+ /**
1052
+ * Deletes access point information used in client mode.
1053
+ *
1054
+ * @function deleteAccessPoint
1055
+ * @param {string} ssid SSID of the access point to delete.
1056
+ * @return promise of boolean result
1057
+ */
1058
+ function deleteAccessPoint(ssid) {
1059
+ return ThetaClientReactNative.deleteAccessPoint(ssid);
1060
+ }
1061
+ //# sourceMappingURL=index.js.map