theta-client-react-native 1.0.2 → 1.2.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/README.md +6 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +409 -0
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +700 -24
- package/ios/ThetaClientReactNative.h +6 -0
- package/ios/ThetaClientReactNative.mm +1661 -183
- package/lib/commonjs/capture/capture.js +118 -0
- package/lib/commonjs/capture/capture.js.map +1 -0
- package/lib/commonjs/capture/index.js +50 -0
- package/lib/commonjs/capture/index.js.map +1 -0
- package/lib/commonjs/capture/notify.js +12 -0
- package/lib/commonjs/capture/notify.js.map +1 -0
- package/lib/commonjs/capture/photo-capture.js +64 -0
- package/lib/commonjs/capture/photo-capture.js.map +1 -0
- package/lib/commonjs/capture/time-shift-capture.js +91 -0
- package/lib/commonjs/capture/time-shift-capture.js.map +1 -0
- package/lib/commonjs/capture/video-capture.js +71 -0
- package/lib/commonjs/capture/video-capture.js.map +1 -0
- package/lib/commonjs/index.js +40 -1041
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/theta-repository/access-point.js +23 -0
- package/lib/commonjs/theta-repository/access-point.js.map +1 -0
- package/lib/commonjs/theta-repository/digest-auth.js +2 -0
- package/lib/commonjs/theta-repository/digest-auth.js.map +1 -0
- package/lib/commonjs/theta-repository/index.js +105 -0
- package/lib/commonjs/theta-repository/index.js.map +1 -0
- package/lib/commonjs/theta-repository/options/index.js +138 -0
- package/lib/commonjs/theta-repository/options/index.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-camera-control-source.js +29 -0
- package/lib/commonjs/theta-repository/options/option-camera-control-source.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-camera-mode.js +26 -0
- package/lib/commonjs/theta-repository/options/option-camera-mode.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-network-type.js +26 -0
- package/lib/commonjs/theta-repository/options/option-network-type.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-power-saving.js +24 -0
- package/lib/commonjs/theta-repository/options/option-power-saving.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-preview-format.js +32 -0
- package/lib/commonjs/theta-repository/options/option-preview-format.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-proxy.js +2 -0
- package/lib/commonjs/theta-repository/options/option-proxy.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-shooting-method.js +41 -0
- package/lib/commonjs/theta-repository/options/option-shooting-method.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-shutter-speed.js +302 -0
- package/lib/commonjs/theta-repository/options/option-shutter-speed.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-time-shift.js +43 -0
- package/lib/commonjs/theta-repository/options/option-time-shift.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-white-balance-auto-strength.js +25 -0
- package/lib/commonjs/theta-repository/options/option-white-balance-auto-strength.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-wlan-frequency.js +22 -0
- package/lib/commonjs/theta-repository/options/option-wlan-frequency.js.map +1 -0
- package/lib/commonjs/theta-repository/options/options.js +490 -0
- package/lib/commonjs/theta-repository/options/options.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-config.js +6 -0
- package/lib/commonjs/theta-repository/theta-config.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-files.js +35 -0
- package/lib/commonjs/theta-repository/theta-files.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-info.js +2 -0
- package/lib/commonjs/theta-repository/theta-info.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-meta.js +2 -0
- package/lib/commonjs/theta-repository/theta-meta.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-plugin.js +2 -0
- package/lib/commonjs/theta-repository/theta-plugin.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-repository.js +510 -0
- package/lib/commonjs/theta-repository/theta-repository.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-state.js +120 -0
- package/lib/commonjs/theta-repository/theta-state.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-timeout.js +2 -0
- package/lib/commonjs/theta-repository/theta-timeout.js.map +1 -0
- package/lib/module/capture/capture.js +111 -0
- package/lib/module/capture/capture.js.map +1 -0
- package/lib/module/capture/index.js +5 -0
- package/lib/module/capture/index.js.map +1 -0
- package/lib/module/capture/notify.js +6 -0
- package/lib/module/capture/notify.js.map +1 -0
- package/lib/module/capture/photo-capture.js +56 -0
- package/lib/module/capture/photo-capture.js.map +1 -0
- package/lib/module/capture/time-shift-capture.js +83 -0
- package/lib/module/capture/time-shift-capture.js.map +1 -0
- package/lib/module/capture/video-capture.js +63 -0
- package/lib/module/capture/video-capture.js.map +1 -0
- package/lib/module/index.js +3 -1009
- package/lib/module/index.js.map +1 -1
- package/lib/module/theta-repository/access-point.js +16 -0
- package/lib/module/theta-repository/access-point.js.map +1 -0
- package/lib/module/theta-repository/digest-auth.js +2 -0
- package/lib/module/theta-repository/digest-auth.js.map +1 -0
- package/lib/module/theta-repository/index.js +10 -0
- package/lib/module/theta-repository/index.js.map +1 -0
- package/lib/module/theta-repository/options/index.js +13 -0
- package/lib/module/theta-repository/options/index.js.map +1 -0
- package/lib/module/theta-repository/options/option-camera-control-source.js +22 -0
- package/lib/module/theta-repository/options/option-camera-control-source.js.map +1 -0
- package/lib/module/theta-repository/options/option-camera-mode.js +19 -0
- package/lib/module/theta-repository/options/option-camera-mode.js.map +1 -0
- package/lib/module/theta-repository/options/option-network-type.js +19 -0
- package/lib/module/theta-repository/options/option-network-type.js.map +1 -0
- package/lib/module/theta-repository/options/option-power-saving.js +17 -0
- package/lib/module/theta-repository/options/option-power-saving.js.map +1 -0
- package/lib/module/theta-repository/options/option-preview-format.js +25 -0
- package/lib/module/theta-repository/options/option-preview-format.js.map +1 -0
- package/lib/module/theta-repository/options/option-proxy.js +2 -0
- package/lib/module/theta-repository/options/option-proxy.js.map +1 -0
- package/lib/module/theta-repository/options/option-shooting-method.js +34 -0
- package/lib/module/theta-repository/options/option-shooting-method.js.map +1 -0
- package/lib/module/theta-repository/options/option-shutter-speed.js +295 -0
- package/lib/module/theta-repository/options/option-shutter-speed.js.map +1 -0
- package/lib/module/theta-repository/options/option-time-shift.js +36 -0
- package/lib/module/theta-repository/options/option-time-shift.js.map +1 -0
- package/lib/module/theta-repository/options/option-white-balance-auto-strength.js +18 -0
- package/lib/module/theta-repository/options/option-white-balance-auto-strength.js.map +1 -0
- package/lib/module/theta-repository/options/option-wlan-frequency.js +15 -0
- package/lib/module/theta-repository/options/option-wlan-frequency.js.map +1 -0
- package/lib/module/theta-repository/options/options.js +482 -0
- package/lib/module/theta-repository/options/options.js.map +1 -0
- package/lib/module/theta-repository/theta-config.js +2 -0
- package/lib/module/theta-repository/theta-config.js.map +1 -0
- package/lib/module/theta-repository/theta-files.js +28 -0
- package/lib/module/theta-repository/theta-files.js.map +1 -0
- package/lib/module/theta-repository/theta-info.js +2 -0
- package/lib/module/theta-repository/theta-info.js.map +1 -0
- package/lib/module/theta-repository/theta-meta.js +2 -0
- package/lib/module/theta-repository/theta-meta.js.map +1 -0
- package/lib/module/theta-repository/theta-plugin.js +2 -0
- package/lib/module/theta-repository/theta-plugin.js.map +1 -0
- package/lib/module/theta-repository/theta-repository.js +466 -0
- package/lib/module/theta-repository/theta-repository.js.map +1 -0
- package/lib/module/theta-repository/theta-state.js +113 -0
- package/lib/module/theta-repository/theta-state.js.map +1 -0
- package/lib/module/theta-repository/theta-timeout.js +2 -0
- package/lib/module/theta-repository/theta-timeout.js.map +1 -0
- package/lib/typescript/capture/capture.d.ts +71 -0
- package/lib/typescript/capture/capture.d.ts.map +1 -0
- package/lib/typescript/capture/index.d.ts +5 -0
- package/lib/typescript/capture/index.d.ts.map +1 -0
- package/lib/typescript/capture/notify.d.ts +13 -0
- package/lib/typescript/capture/notify.d.ts.map +1 -0
- package/lib/typescript/capture/photo-capture.d.ts +38 -0
- package/lib/typescript/capture/photo-capture.d.ts.map +1 -0
- package/lib/typescript/capture/time-shift-capture.d.ts +44 -0
- package/lib/typescript/capture/time-shift-capture.d.ts.map +1 -0
- package/lib/typescript/capture/video-capture.d.ts +43 -0
- package/lib/typescript/capture/video-capture.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +3 -972
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/theta-repository/access-point.d.ts +36 -0
- package/lib/typescript/theta-repository/access-point.d.ts.map +1 -0
- package/lib/typescript/theta-repository/digest-auth.d.ts +17 -0
- package/lib/typescript/theta-repository/digest-auth.d.ts.map +1 -0
- package/lib/typescript/theta-repository/index.d.ts +10 -0
- package/lib/typescript/theta-repository/index.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/index.d.ts +13 -0
- package/lib/typescript/theta-repository/options/index.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-camera-control-source.d.ts +22 -0
- package/lib/typescript/theta-repository/options/option-camera-control-source.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-camera-mode.d.ts +19 -0
- package/lib/typescript/theta-repository/options/option-camera-mode.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-network-type.d.ts +19 -0
- package/lib/typescript/theta-repository/options/option-network-type.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-power-saving.d.ts +16 -0
- package/lib/typescript/theta-repository/options/option-power-saving.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-preview-format.d.ts +25 -0
- package/lib/typescript/theta-repository/options/option-preview-format.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-proxy.d.ts +23 -0
- package/lib/typescript/theta-repository/options/option-proxy.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-shooting-method.d.ts +33 -0
- package/lib/typescript/theta-repository/options/option-shooting-method.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-shutter-speed.d.ts +295 -0
- package/lib/typescript/theta-repository/options/option-shutter-speed.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-time-shift.d.ts +54 -0
- package/lib/typescript/theta-repository/options/option-time-shift.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-white-balance-auto-strength.d.ts +18 -0
- package/lib/typescript/theta-repository/options/option-white-balance-auto-strength.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-wlan-frequency.d.ts +15 -0
- package/lib/typescript/theta-repository/options/option-wlan-frequency.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/options.d.ts +566 -0
- package/lib/typescript/theta-repository/options/options.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-config.d.ts +20 -0
- package/lib/typescript/theta-repository/theta-config.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-files.d.ts +45 -0
- package/lib/typescript/theta-repository/theta-files.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-info.d.ts +34 -0
- package/lib/typescript/theta-repository/theta-info.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-meta.d.ts +38 -0
- package/lib/typescript/theta-repository/theta-meta.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-plugin.d.ts +26 -0
- package/lib/typescript/theta-repository/theta-plugin.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-repository.d.ts +333 -0
- package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-state.d.ts +150 -0
- package/lib/typescript/theta-repository/theta-state.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-timeout.d.ts +22 -0
- package/lib/typescript/theta-repository/theta-timeout.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/capture/capture.ts +124 -0
- package/src/capture/index.ts +4 -0
- package/src/capture/notify.ts +27 -0
- package/src/capture/photo-capture.ts +62 -0
- package/src/capture/time-shift-capture.ts +99 -0
- package/src/capture/video-capture.ts +69 -0
- package/src/index.tsx +3 -1243
- package/src/theta-repository/access-point.ts +38 -0
- package/src/theta-repository/digest-auth.ts +16 -0
- package/src/theta-repository/index.ts +9 -0
- package/src/theta-repository/options/index.ts +13 -0
- package/src/theta-repository/options/option-camera-control-source.ts +24 -0
- package/src/theta-repository/options/option-camera-mode.ts +20 -0
- package/src/theta-repository/options/option-network-type.ts +20 -0
- package/src/theta-repository/options/option-power-saving.ts +18 -0
- package/src/theta-repository/options/option-preview-format.ts +27 -0
- package/src/theta-repository/options/option-proxy.ts +22 -0
- package/src/theta-repository/options/option-shooting-method.ts +36 -0
- package/src/theta-repository/options/option-shutter-speed.ts +360 -0
- package/src/theta-repository/options/option-time-shift.ts +59 -0
- package/src/theta-repository/options/option-white-balance-auto-strength.ts +19 -0
- package/src/theta-repository/options/option-wlan-frequency.ts +16 -0
- package/src/theta-repository/options/options.ts +622 -0
- package/src/theta-repository/theta-config.ts +20 -0
- package/src/theta-repository/theta-files.ts +49 -0
- package/src/theta-repository/theta-info.ts +35 -0
- package/src/theta-repository/theta-meta.ts +39 -0
- package/src/theta-repository/theta-plugin.ts +25 -0
- package/src/theta-repository/theta-repository.ts +527 -0
- package/src/theta-repository/theta-state.ts +164 -0
- package/src/theta-repository/theta-timeout.ts +21 -0
- package/theta-client-react-native.podspec +1 -1
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/** Battery charging state constants */
|
|
2
|
+
export const ChargingStateEnum = {
|
|
3
|
+
/** Charging */
|
|
4
|
+
CHARGING: 'CHARGING',
|
|
5
|
+
/** Charging completed */
|
|
6
|
+
COMPLETED: 'COMPLETED',
|
|
7
|
+
/** Not charging */
|
|
8
|
+
NOT_CHARGING: 'NOT_CHARGING',
|
|
9
|
+
} as const;
|
|
10
|
+
|
|
11
|
+
/** type definition of ChargingStateEnum */
|
|
12
|
+
export type ChargingStateEnum =
|
|
13
|
+
typeof ChargingStateEnum[keyof typeof ChargingStateEnum];
|
|
14
|
+
|
|
15
|
+
/** Capture Status constants */
|
|
16
|
+
export const CaptureStatusEnum = {
|
|
17
|
+
/** Performing continuously shoot */
|
|
18
|
+
SHOOTING: 'SHOOTING',
|
|
19
|
+
/** In standby */
|
|
20
|
+
IDLE: 'IDLE',
|
|
21
|
+
/** Self-timer is operating */
|
|
22
|
+
SELF_TIMER_COUNTDOWN: 'SELF_TIMER_COUNTDOWN',
|
|
23
|
+
/** Performing multi bracket shooting */
|
|
24
|
+
BRACKET_SHOOTING: 'BRACKET_SHOOTING',
|
|
25
|
+
/** Converting post file... */
|
|
26
|
+
CONVERTING: 'CONVERTING',
|
|
27
|
+
/** Performing timeShift shooting */
|
|
28
|
+
TIME_SHIFT_SHOOTING: 'TIME_SHIFT_SHOOTING',
|
|
29
|
+
/** Performing continuous shooting */
|
|
30
|
+
CONTINUOUS_SHOOTING: 'CONTINUOUS_SHOOTING',
|
|
31
|
+
/** Waiting for retrospective video... */
|
|
32
|
+
RETROSPECTIVE_IMAGE_RECORDING: 'RETROSPECTIVE_IMAGE_RECORDING',
|
|
33
|
+
} as const;
|
|
34
|
+
|
|
35
|
+
/** type definition of CaptureStatusEnum */
|
|
36
|
+
export type CaptureStatusEnum =
|
|
37
|
+
typeof CaptureStatusEnum[keyof typeof CaptureStatusEnum];
|
|
38
|
+
|
|
39
|
+
/** Shooting function status constants */
|
|
40
|
+
export const ShootingFunctionEnum = {
|
|
41
|
+
/** normal */
|
|
42
|
+
NORMAL: 'NORMAL',
|
|
43
|
+
/** selfTimer */
|
|
44
|
+
SELF_TIMER: 'SELF_TIMER',
|
|
45
|
+
/** mySetting */
|
|
46
|
+
MY_SETTING: 'MY_SETTING',
|
|
47
|
+
} as const;
|
|
48
|
+
|
|
49
|
+
/** type definition of ShootingFunctionEnum */
|
|
50
|
+
export type ShootingFunctionEnum =
|
|
51
|
+
typeof ShootingFunctionEnum[keyof typeof ShootingFunctionEnum];
|
|
52
|
+
|
|
53
|
+
/** Microphone option constants */
|
|
54
|
+
export const MicrophoneOptionEnum = {
|
|
55
|
+
/** auto */
|
|
56
|
+
AUTO: 'AUTO',
|
|
57
|
+
/** built-in microphone */
|
|
58
|
+
INTERNAL: 'INTERNAL',
|
|
59
|
+
/** external microphone */
|
|
60
|
+
EXTERNAL: 'EXTERNAL',
|
|
61
|
+
} as const;
|
|
62
|
+
|
|
63
|
+
/** type definition of MicrophoneOptionEnum */
|
|
64
|
+
export type MicrophoneOptionEnum =
|
|
65
|
+
typeof MicrophoneOptionEnum[keyof typeof MicrophoneOptionEnum];
|
|
66
|
+
|
|
67
|
+
/** Camera error constants */
|
|
68
|
+
export const CameraErrorEnum = {
|
|
69
|
+
/** Insufficient memory */
|
|
70
|
+
NO_MEMORY: 'NO_MEMORY',
|
|
71
|
+
/** Maximum file number exceeded */
|
|
72
|
+
FILE_NUMBER_OVER: 'FILE_NUMBER_OVER',
|
|
73
|
+
/** Camera clock not set */
|
|
74
|
+
NO_DATA_SETTING: 'NO_DATE_SETTING',
|
|
75
|
+
/** Includes when the card is removed */
|
|
76
|
+
READ_ERROR: 'READ_ERROR',
|
|
77
|
+
/** Unsupported media (SDHC, etc.) */
|
|
78
|
+
NOT_SUPPORTED_MEDIA_TYPE: 'NOT_SUPPORTED_MEDIA_TYPE',
|
|
79
|
+
/** FAT32, etc. */
|
|
80
|
+
NOT_SUPPORTED_FILE_SYSTEM: 'NOT_SUPPORTED_FILE_SYSTEM',
|
|
81
|
+
/** Error warning while mounting */
|
|
82
|
+
MEDIA_NOT_READY: 'MEDIA_NOT_READY',
|
|
83
|
+
/** Battery level warning (firmware update) */
|
|
84
|
+
NOT_ENOUGH_BATTERY: 'NOT_ENOUGH_BATTERY',
|
|
85
|
+
/** Firmware file mismatch warning */
|
|
86
|
+
INVALID_FILE: 'INVALID_FILE',
|
|
87
|
+
/** Plugin start warning (IoT technical standards compliance) */
|
|
88
|
+
PLUGIN_BOOT_ERROR: 'PLUGIN_BOOT_ERROR',
|
|
89
|
+
/**
|
|
90
|
+
* When performing continuous shooting by operating the camera while executing <Delete object>,
|
|
91
|
+
* <Transfer firmware file>, <Install plugin> or <Uninstall plugin> with the WebAPI or MTP.
|
|
92
|
+
*/
|
|
93
|
+
IN_PROGRESS_ERROR: 'IN_PROGRESS_ERROR',
|
|
94
|
+
/** Battery inserted + WLAN ON + Video mode + 4K 60fps / 5.7K 10fps / 5.7K 15fps / 5.7K 30fps / 8K 10fps */
|
|
95
|
+
CANNOT_RECORDING: 'CANNOT_RECORDING',
|
|
96
|
+
/** Battery inserted AND Specified battery level or lower + WLAN ON + Video mode + 4K 30fps */
|
|
97
|
+
CANNOT_RECORD_LOWBAT: 'CANNOT_RECORD_LOWBAT',
|
|
98
|
+
/** Shooting hardware failure */
|
|
99
|
+
CAPTURE_HW_FAILED: 'CAPTURE_HW_FAILED',
|
|
100
|
+
/** Software error */
|
|
101
|
+
CAPTURE_SW_FAILED: 'CAPTURE_SW_FAILED',
|
|
102
|
+
/** Internal memory access error */
|
|
103
|
+
INTERNAL_MEM_ACCESS_FAIL: 'INTERNAL_MEM_ACCESS_FAIL',
|
|
104
|
+
/** Undefined error */
|
|
105
|
+
UNEXPECTED_ERROR: 'UNEXPECTED_ERROR',
|
|
106
|
+
/** Charging error */
|
|
107
|
+
BATTERY_CHARGE_FAIL: 'BATTERY_CHARGE_FAIL',
|
|
108
|
+
/** (Board) temperature warning */
|
|
109
|
+
HIGH_TEMPERATURE_WARNING: 'HIGH_TEMPERATURE_WARNING',
|
|
110
|
+
/** (Board) temperature error */
|
|
111
|
+
HIGH_TEMPERATURE: 'HIGH_TEMPERATURE',
|
|
112
|
+
/** Battery temperature error */
|
|
113
|
+
BATTERY_HIGH_TEMPERATURE: 'BATTERY_HIGH_TEMPERATURE',
|
|
114
|
+
/** Electronic compass error */
|
|
115
|
+
COMPASS_CALIBRATION: 'COMPASS_CALIBRATION',
|
|
116
|
+
} as const;
|
|
117
|
+
|
|
118
|
+
/** type definition of CameraErrorEnum */
|
|
119
|
+
export type CameraErrorEnum =
|
|
120
|
+
typeof CameraErrorEnum[keyof typeof CameraErrorEnum];
|
|
121
|
+
|
|
122
|
+
/** Mutable values representing Theta status. */
|
|
123
|
+
export type ThetaState = {
|
|
124
|
+
/** Fingerprint (unique identifier) of the current camera state */
|
|
125
|
+
fingerprint: string;
|
|
126
|
+
/** Battery level between 0.0 and 1.0 */
|
|
127
|
+
batteryLevel: number;
|
|
128
|
+
/** Storage URI */
|
|
129
|
+
storageUri: string | null;
|
|
130
|
+
/** Storage ID */
|
|
131
|
+
storageID: string | null;
|
|
132
|
+
/** Continuously shoots state */
|
|
133
|
+
captureStatus: CaptureStatusEnum;
|
|
134
|
+
/** Recorded time of movie (seconds) */
|
|
135
|
+
recordedTime: number;
|
|
136
|
+
/** Recordable time of movie (seconds) */
|
|
137
|
+
recordableTime: number;
|
|
138
|
+
/** Number of still images captured during continuous shooting, Unit: images */
|
|
139
|
+
capturedPictures: number | null;
|
|
140
|
+
/** Elapsed time for interval composite shooting (sec) */
|
|
141
|
+
compositeShootingElapsedTime: number | null;
|
|
142
|
+
/** URL of the last saved file */
|
|
143
|
+
latestFileUrl: string;
|
|
144
|
+
/** Charging state */
|
|
145
|
+
chargingState: ChargingStateEnum;
|
|
146
|
+
/** API version currently set (1: v2.0, 2: v2.1) */
|
|
147
|
+
apiVersion: number;
|
|
148
|
+
/** Plugin running state (true: running, false: stop) */
|
|
149
|
+
isPluginRunning: boolean | null;
|
|
150
|
+
/** Plugin web server state (true: enabled, false: disabled) */
|
|
151
|
+
isPluginWebServer: boolean | null;
|
|
152
|
+
/** Shooting function status*/
|
|
153
|
+
function: ShootingFunctionEnum;
|
|
154
|
+
/** My setting changed state */
|
|
155
|
+
isMySettingChanged: boolean | null;
|
|
156
|
+
/** Identifies the microphone used while recording video */
|
|
157
|
+
currentMicrophone: MicrophoneOptionEnum | null;
|
|
158
|
+
/** true if record to SD card */
|
|
159
|
+
isSdCard: boolean;
|
|
160
|
+
/** Error information of the camera */
|
|
161
|
+
cameraError: Array<CameraErrorEnum> | null;
|
|
162
|
+
/** true: Battery inserted; false: Battery not inserted */
|
|
163
|
+
isBatteryInsert: boolean | null;
|
|
164
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Timeout of HTTP call.
|
|
3
|
+
*/
|
|
4
|
+
export type ThetaTimeout = {
|
|
5
|
+
/**
|
|
6
|
+
* Specifies a time period (in milliseconds) in
|
|
7
|
+
* which a client should establish a connection with a server.
|
|
8
|
+
*/
|
|
9
|
+
connectTimeout: number;
|
|
10
|
+
/**
|
|
11
|
+
* Specifies a time period (in milliseconds) required to process an HTTP call:
|
|
12
|
+
* from sending a request to receiving first response bytes.
|
|
13
|
+
* To disable this timeout, set its value to 0.
|
|
14
|
+
*/
|
|
15
|
+
requestTimeout: number;
|
|
16
|
+
/**
|
|
17
|
+
* Specifies a maximum time (in milliseconds) of inactivity between two data packets
|
|
18
|
+
* when exchanging data with a server.
|
|
19
|
+
*/
|
|
20
|
+
socketTimeout: number;
|
|
21
|
+
};
|
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm}"
|
|
18
18
|
|
|
19
19
|
s.dependency "React-Core"
|
|
20
|
-
s.dependency "THETAClient", "1.
|
|
20
|
+
s.dependency "THETAClient", "1.2.0"
|
|
21
21
|
|
|
22
22
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
23
23
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|