theta-client-react-native 1.12.1 → 1.13.1
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/android/build.gradle +2 -1
- package/android/src/main/AndroidManifest.xml +1 -3
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +532 -33
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +230 -50
- package/ios/ConvertUtil.swift +561 -102
- package/ios/ThetaClientReactNative.m +31 -15
- package/ios/ThetaClientReactNative.swift +325 -118
- package/lib/commonjs/capture/capture.js +12 -1
- package/lib/commonjs/capture/capture.js.map +1 -1
- package/lib/commonjs/capture/continuous-capture.js +2 -1
- package/lib/commonjs/capture/continuous-capture.js.map +1 -1
- package/lib/commonjs/capture/index.js +11 -0
- package/lib/commonjs/capture/index.js.map +1 -1
- package/lib/commonjs/capture/time-shift-manual-capture.js +168 -0
- package/lib/commonjs/capture/time-shift-manual-capture.js.map +1 -0
- package/lib/commonjs/theta-repository/access-point.js +5 -1
- package/lib/commonjs/theta-repository/access-point.js.map +1 -1
- package/lib/commonjs/theta-repository/libs/convert-utils.js +22 -0
- package/lib/commonjs/theta-repository/libs/convert-utils.js.map +1 -0
- package/lib/commonjs/theta-repository/libs/index.js +11 -0
- package/lib/commonjs/theta-repository/libs/index.js.map +1 -1
- package/lib/commonjs/theta-repository/notify-controller.js +16 -7
- package/lib/commonjs/theta-repository/notify-controller.js.map +1 -1
- package/lib/commonjs/theta-repository/options/index.js +166 -12
- package/lib/commonjs/theta-repository/options/index.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-access-info.js +30 -0
- package/lib/commonjs/theta-repository/options/option-access-info.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.js +2 -0
- package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-aperture.js +24 -0
- package/lib/commonjs/theta-repository/options/option-aperture.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-camera-control-source.js +2 -0
- package/lib/commonjs/theta-repository/options/option-camera-control-source.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-camera-lock-config.js +2 -0
- package/lib/commonjs/theta-repository/options/option-camera-lock-config.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-camera-lock.js +27 -0
- package/lib/commonjs/theta-repository/options/option-camera-lock.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-camera-power.js +3 -0
- package/lib/commonjs/theta-repository/options/option-camera-power.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-compass-direction-ref.js +30 -0
- package/lib/commonjs/theta-repository/options/option-compass-direction-ref.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-exposure-compensation.js +64 -0
- package/lib/commonjs/theta-repository/options/option-exposure-compensation.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-file-format.js +29 -1
- package/lib/commonjs/theta-repository/options/option-file-format.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-gps-tag-recording.js +18 -0
- package/lib/commonjs/theta-repository/options/option-gps-tag-recording.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-microphone-noise-reduction.js +23 -0
- package/lib/commonjs/theta-repository/options/option-microphone-noise-reduction.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-mobile-network-setting.js +32 -0
- package/lib/commonjs/theta-repository/options/option-mobile-network-setting.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-network-type.js +18 -2
- package/lib/commonjs/theta-repository/options/option-network-type.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-off-delay-usb.js +61 -0
- package/lib/commonjs/theta-repository/options/option-off-delay-usb.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-preview-format.js +12 -6
- package/lib/commonjs/theta-repository/options/option-preview-format.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-top-bottom-correction-rotation-support.js +6 -0
- package/lib/commonjs/theta-repository/options/option-top-bottom-correction-rotation-support.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-usb-connection.js +23 -0
- package/lib/commonjs/theta-repository/options/option-usb-connection.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-wlan-antenna-config.js +20 -0
- package/lib/commonjs/theta-repository/options/option-wlan-antenna-config.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-wlan-frequency-cl-mode.js +2 -0
- package/lib/commonjs/theta-repository/options/option-wlan-frequency-cl-mode.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-wlan-frequency.js +8 -2
- package/lib/commonjs/theta-repository/options/option-wlan-frequency.js.map +1 -1
- package/lib/commonjs/theta-repository/options/options.js +44 -62
- package/lib/commonjs/theta-repository/options/options.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-files.js +5 -1
- package/lib/commonjs/theta-repository/theta-files.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-info.js +3 -1
- package/lib/commonjs/theta-repository/theta-info.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-repository.js +130 -18
- package/lib/commonjs/theta-repository/theta-repository.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-state/capture-status.js +6 -1
- package/lib/commonjs/theta-repository/theta-state/capture-status.js.map +1 -1
- package/lib/module/capture/capture.js +12 -1
- package/lib/module/capture/capture.js.map +1 -1
- package/lib/module/capture/continuous-capture.js +2 -1
- package/lib/module/capture/continuous-capture.js.map +1 -1
- package/lib/module/capture/index.js +1 -0
- package/lib/module/capture/index.js.map +1 -1
- package/lib/module/capture/time-shift-manual-capture.js +160 -0
- package/lib/module/capture/time-shift-manual-capture.js.map +1 -0
- package/lib/module/theta-repository/access-point.js +5 -1
- package/lib/module/theta-repository/access-point.js.map +1 -1
- package/lib/module/theta-repository/libs/convert-utils.js +16 -0
- package/lib/module/theta-repository/libs/convert-utils.js.map +1 -0
- package/lib/module/theta-repository/libs/index.js +1 -0
- package/lib/module/theta-repository/libs/index.js.map +1 -1
- package/lib/module/theta-repository/notify-controller.js +16 -7
- package/lib/module/theta-repository/notify-controller.js.map +1 -1
- package/lib/module/theta-repository/options/index.js +16 -2
- package/lib/module/theta-repository/options/index.js.map +1 -1
- package/lib/module/theta-repository/options/option-access-info.js +24 -0
- package/lib/module/theta-repository/options/option-access-info.js.map +1 -0
- package/lib/module/theta-repository/options/option-ai-auto-thumbnail.js +2 -0
- package/lib/module/theta-repository/options/option-ai-auto-thumbnail.js.map +1 -1
- package/lib/module/theta-repository/options/option-aperture.js +18 -0
- package/lib/module/theta-repository/options/option-aperture.js.map +1 -0
- package/lib/module/theta-repository/options/option-camera-control-source.js +2 -0
- package/lib/module/theta-repository/options/option-camera-control-source.js.map +1 -1
- package/lib/module/theta-repository/options/option-camera-lock-config.js +2 -0
- package/lib/module/theta-repository/options/option-camera-lock-config.js.map +1 -0
- package/lib/module/theta-repository/options/option-camera-lock.js +21 -0
- package/lib/module/theta-repository/options/option-camera-lock.js.map +1 -0
- package/lib/module/theta-repository/options/option-camera-power.js +3 -0
- package/lib/module/theta-repository/options/option-camera-power.js.map +1 -1
- package/lib/module/theta-repository/options/option-compass-direction-ref.js +24 -0
- package/lib/module/theta-repository/options/option-compass-direction-ref.js.map +1 -0
- package/lib/module/theta-repository/options/option-exposure-compensation.js +58 -0
- package/lib/module/theta-repository/options/option-exposure-compensation.js.map +1 -0
- package/lib/module/theta-repository/options/option-file-format.js +29 -1
- package/lib/module/theta-repository/options/option-file-format.js.map +1 -1
- package/lib/module/theta-repository/options/option-gps-tag-recording.js +12 -0
- package/lib/module/theta-repository/options/option-gps-tag-recording.js.map +1 -0
- package/lib/module/theta-repository/options/option-microphone-noise-reduction.js +17 -0
- package/lib/module/theta-repository/options/option-microphone-noise-reduction.js.map +1 -0
- package/lib/module/theta-repository/options/option-mobile-network-setting.js +26 -0
- package/lib/module/theta-repository/options/option-mobile-network-setting.js.map +1 -0
- package/lib/module/theta-repository/options/option-network-type.js +18 -2
- package/lib/module/theta-repository/options/option-network-type.js.map +1 -1
- package/lib/module/theta-repository/options/option-off-delay-usb.js +54 -0
- package/lib/module/theta-repository/options/option-off-delay-usb.js.map +1 -0
- package/lib/module/theta-repository/options/option-preview-format.js +12 -6
- package/lib/module/theta-repository/options/option-preview-format.js.map +1 -1
- package/lib/module/theta-repository/options/option-top-bottom-correction-rotation-support.js +2 -0
- package/lib/module/theta-repository/options/option-top-bottom-correction-rotation-support.js.map +1 -0
- package/lib/module/theta-repository/options/option-usb-connection.js +17 -0
- package/lib/module/theta-repository/options/option-usb-connection.js.map +1 -0
- package/lib/module/theta-repository/options/option-wlan-antenna-config.js +14 -0
- package/lib/module/theta-repository/options/option-wlan-antenna-config.js.map +1 -0
- package/lib/module/theta-repository/options/option-wlan-frequency-cl-mode.js +2 -0
- package/lib/module/theta-repository/options/option-wlan-frequency-cl-mode.js.map +1 -0
- package/lib/module/theta-repository/options/option-wlan-frequency.js +8 -2
- package/lib/module/theta-repository/options/option-wlan-frequency.js.map +1 -1
- package/lib/module/theta-repository/options/options.js +43 -61
- package/lib/module/theta-repository/options/options.js.map +1 -1
- package/lib/module/theta-repository/theta-files.js +5 -1
- package/lib/module/theta-repository/theta-files.js.map +1 -1
- package/lib/module/theta-repository/theta-info.js +3 -1
- package/lib/module/theta-repository/theta-info.js.map +1 -1
- package/lib/module/theta-repository/theta-repository.js +128 -20
- package/lib/module/theta-repository/theta-repository.js.map +1 -1
- package/lib/module/theta-repository/theta-state/capture-status.js +6 -1
- package/lib/module/theta-repository/theta-state/capture-status.js.map +1 -1
- package/lib/typescript/capture/capture.d.ts +11 -0
- package/lib/typescript/capture/capture.d.ts.map +1 -1
- package/lib/typescript/capture/continuous-capture.d.ts.map +1 -1
- package/lib/typescript/capture/index.d.ts +1 -0
- package/lib/typescript/capture/index.d.ts.map +1 -1
- package/lib/typescript/capture/time-shift-manual-capture.d.ts +70 -0
- package/lib/typescript/capture/time-shift-manual-capture.d.ts.map +1 -0
- package/lib/typescript/theta-repository/access-point.d.ts +11 -3
- package/lib/typescript/theta-repository/access-point.d.ts.map +1 -1
- package/lib/typescript/theta-repository/libs/convert-utils.d.ts +3 -0
- package/lib/typescript/theta-repository/libs/convert-utils.d.ts.map +1 -0
- package/lib/typescript/theta-repository/libs/index.d.ts +1 -0
- package/lib/typescript/theta-repository/libs/index.d.ts.map +1 -1
- package/lib/typescript/theta-repository/notify-controller.d.ts +3 -1
- package/lib/typescript/theta-repository/notify-controller.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/index.d.ts +16 -2
- package/lib/typescript/theta-repository/options/index.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-access-info.d.ts +91 -0
- package/lib/typescript/theta-repository/options/option-access-info.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-ai-auto-thumbnail.d.ts +2 -0
- package/lib/typescript/theta-repository/options/option-ai-auto-thumbnail.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-aperture.d.ts +18 -0
- package/lib/typescript/theta-repository/options/option-aperture.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-auto-bracket.d.ts +3 -1
- package/lib/typescript/theta-repository/options/option-auto-bracket.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-camera-control-source.d.ts +2 -0
- package/lib/typescript/theta-repository/options/option-camera-control-source.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-camera-lock-config.d.ts +26 -0
- package/lib/typescript/theta-repository/options/option-camera-lock-config.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-camera-lock.d.ts +21 -0
- package/lib/typescript/theta-repository/options/option-camera-lock.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-camera-power.d.ts +3 -0
- package/lib/typescript/theta-repository/options/option-camera-power.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-compass-direction-ref.d.ts +24 -0
- package/lib/typescript/theta-repository/options/option-compass-direction-ref.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-ethernet-config.d.ts +8 -4
- package/lib/typescript/theta-repository/options/option-ethernet-config.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-exposure-compensation.d.ts +58 -0
- package/lib/typescript/theta-repository/options/option-exposure-compensation.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-file-format.d.ts +42 -0
- package/lib/typescript/theta-repository/options/option-file-format.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-gps-tag-recording.d.ts +12 -0
- package/lib/typescript/theta-repository/options/option-gps-tag-recording.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-microphone-noise-reduction.d.ts +17 -0
- package/lib/typescript/theta-repository/options/option-microphone-noise-reduction.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-mobile-network-setting.d.ts +34 -0
- package/lib/typescript/theta-repository/options/option-mobile-network-setting.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-network-type.d.ts +17 -1
- package/lib/typescript/theta-repository/options/option-network-type.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-off-delay-usb.d.ts +36 -0
- package/lib/typescript/theta-repository/options/option-off-delay-usb.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-preview-format.d.ts +12 -6
- package/lib/typescript/theta-repository/options/option-preview-format.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-top-bottom-correction-rotation-support.d.ts +19 -0
- package/lib/typescript/theta-repository/options/option-top-bottom-correction-rotation-support.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-usb-connection.d.ts +17 -0
- package/lib/typescript/theta-repository/options/option-usb-connection.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-wlan-antenna-config.d.ts +14 -0
- package/lib/typescript/theta-repository/options/option-wlan-antenna-config.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-wlan-frequency-cl-mode.d.ts +20 -0
- package/lib/typescript/theta-repository/options/option-wlan-frequency-cl-mode.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-wlan-frequency.d.ts +7 -1
- package/lib/typescript/theta-repository/options/option-wlan-frequency.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/options.d.ts +131 -63
- package/lib/typescript/theta-repository/options/options.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-files.d.ts +4 -0
- package/lib/typescript/theta-repository/theta-files.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-info.d.ts +9 -1
- package/lib/typescript/theta-repository/theta-info.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-repository.d.ts +65 -14
- package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-state/capture-status.d.ts +5 -0
- package/lib/typescript/theta-repository/theta-state/capture-status.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/capture/capture.ts +11 -0
- package/src/capture/continuous-capture.ts +2 -4
- package/src/capture/index.ts +1 -0
- package/src/capture/time-shift-manual-capture.ts +203 -0
- package/src/theta-repository/access-point.ts +11 -3
- package/src/theta-repository/libs/convert-utils.ts +27 -0
- package/src/theta-repository/libs/index.ts +1 -0
- package/src/theta-repository/notify-controller.ts +18 -8
- package/src/theta-repository/options/index.ts +16 -2
- package/src/theta-repository/options/option-access-info.ts +108 -0
- package/src/theta-repository/options/option-ai-auto-thumbnail.ts +2 -0
- package/src/theta-repository/options/option-aperture.ts +18 -0
- package/src/theta-repository/options/option-auto-bracket.ts +3 -7
- package/src/theta-repository/options/option-camera-control-source.ts +3 -0
- package/src/theta-repository/options/option-camera-lock-config.ts +25 -0
- package/src/theta-repository/options/option-camera-lock.ts +22 -0
- package/src/theta-repository/options/option-camera-power.ts +3 -0
- package/src/theta-repository/options/option-compass-direction-ref.ts +25 -0
- package/src/theta-repository/options/option-ethernet-config.ts +8 -4
- package/src/theta-repository/options/option-exposure-compensation.ts +59 -0
- package/src/theta-repository/options/option-file-format.ts +29 -0
- package/src/theta-repository/options/option-gps-tag-recording.ts +13 -0
- package/src/theta-repository/options/option-microphone-noise-reduction.ts +18 -0
- package/src/theta-repository/options/option-mobile-network-setting.ts +38 -0
- package/src/theta-repository/options/option-network-type.ts +17 -1
- package/src/theta-repository/options/option-off-delay-usb.ts +57 -0
- package/src/theta-repository/options/option-preview-format.ts +12 -6
- package/src/theta-repository/options/option-top-bottom-correction-rotation-support.ts +19 -0
- package/src/theta-repository/options/option-usb-connection.ts +18 -0
- package/src/theta-repository/options/option-wlan-antenna-config.ts +15 -0
- package/src/theta-repository/options/option-wlan-frequency-cl-mode.ts +19 -0
- package/src/theta-repository/options/option-wlan-frequency.ts +7 -1
- package/src/theta-repository/options/options.ts +133 -71
- package/src/theta-repository/theta-files.ts +4 -0
- package/src/theta-repository/theta-info.ts +9 -1
- package/src/theta-repository/theta-repository.ts +133 -30
- package/src/theta-repository/theta-state/capture-status.ts +5 -0
- package/theta-client-react-native.podspec +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessPoint, AuthModeEnum } from './access-point';
|
|
1
|
+
import type { AccessPoint, AuthModeEnum } from './access-point';
|
|
2
2
|
import type { FileTypeEnum, StorageEnum, ThetaFiles } from './theta-files';
|
|
3
3
|
import type { ThetaState } from './theta-state';
|
|
4
4
|
import type { ThetaInfo, ThetaModel } from './theta-info';
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
PhotoCaptureBuilder,
|
|
23
23
|
VideoCaptureBuilder,
|
|
24
24
|
TimeShiftCaptureBuilder,
|
|
25
|
+
TimeShiftManualCaptureBuilder,
|
|
25
26
|
LimitlessIntervalCaptureBuilder,
|
|
26
27
|
ShotCountSpecifiedIntervalCaptureBuilder,
|
|
27
28
|
CompositeIntervalCaptureBuilder,
|
|
@@ -33,9 +34,36 @@ import type { ThetaConfig } from './theta-config';
|
|
|
33
34
|
import type { ThetaTimeout } from './theta-timeout';
|
|
34
35
|
import { NotifyController } from './notify-controller';
|
|
35
36
|
import { EventWebSocket } from './event-websocket';
|
|
36
|
-
import { convertVideoFormatsImpl } from './libs';
|
|
37
|
+
import { convertOptions, convertVideoFormatsImpl } from './libs';
|
|
37
38
|
const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
|
|
38
39
|
|
|
40
|
+
const NOTIFY_API_LOG = 'API-LOG';
|
|
41
|
+
let apiLogListener: ((message: string) => void) | undefined;
|
|
42
|
+
|
|
43
|
+
async function setNotifyApiLogListener(listener?: (message: string) => void) {
|
|
44
|
+
if (listener) {
|
|
45
|
+
NotifyController.instance.addNotify(NOTIFY_API_LOG, (event) => {
|
|
46
|
+
listener(event.params.message);
|
|
47
|
+
});
|
|
48
|
+
} else {
|
|
49
|
+
NotifyController.instance.removeNotify(NOTIFY_API_LOG);
|
|
50
|
+
}
|
|
51
|
+
await ThetaClientReactNative.setApiLogListener(listener != null);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Set up a log listener for THETA API calls
|
|
56
|
+
*
|
|
57
|
+
* @param listener Called when there is a THETA API request and response; if undefined, unregister.
|
|
58
|
+
*/
|
|
59
|
+
export async function setApiLogListener(listener?: (message: string) => void) {
|
|
60
|
+
if (!NotifyController.instance.isInit()) {
|
|
61
|
+
NotifyController.instance.init();
|
|
62
|
+
}
|
|
63
|
+
apiLogListener = listener;
|
|
64
|
+
await setNotifyApiLogListener(apiLogListener);
|
|
65
|
+
}
|
|
66
|
+
|
|
39
67
|
/**
|
|
40
68
|
* initialize theta client sdk
|
|
41
69
|
*
|
|
@@ -45,12 +73,15 @@ const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
|
|
|
45
73
|
* @param {ThetaTimeout} timeout Timeout of HTTP call.
|
|
46
74
|
* @return promise of boolean result
|
|
47
75
|
**/
|
|
48
|
-
export function initialize(
|
|
76
|
+
export async function initialize(
|
|
49
77
|
endPoint: string = 'http://192.168.1.1',
|
|
50
78
|
config?: ThetaConfig,
|
|
51
79
|
timeout?: ThetaTimeout
|
|
52
80
|
): Promise<boolean> {
|
|
53
81
|
NotifyController.instance.init();
|
|
82
|
+
if (apiLogListener) {
|
|
83
|
+
await setNotifyApiLogListener(apiLogListener);
|
|
84
|
+
}
|
|
54
85
|
|
|
55
86
|
return ThetaClientReactNative.initialize(endPoint, config, timeout);
|
|
56
87
|
}
|
|
@@ -65,6 +96,19 @@ export function isInitialized(): Promise<boolean> {
|
|
|
65
96
|
return ThetaClientReactNative.isInitialized();
|
|
66
97
|
}
|
|
67
98
|
|
|
99
|
+
/**
|
|
100
|
+
* Turn off/on (reboot) the camera.
|
|
101
|
+
* Supported models are THETA A1 only.
|
|
102
|
+
*
|
|
103
|
+
* Error when connecting in CL mode for Japan-bound models only
|
|
104
|
+
*
|
|
105
|
+
* @function reboot
|
|
106
|
+
* @return promise
|
|
107
|
+
*/
|
|
108
|
+
export function reboot(): Promise<void> {
|
|
109
|
+
return ThetaClientReactNative.reboot();
|
|
110
|
+
}
|
|
111
|
+
|
|
68
112
|
/**
|
|
69
113
|
* Reset all device settings and capture settings.
|
|
70
114
|
* After reset, the camera will be restarted.
|
|
@@ -96,6 +140,16 @@ export function getTimeShiftCaptureBuilder(): TimeShiftCaptureBuilder {
|
|
|
96
140
|
return new TimeShiftCaptureBuilder();
|
|
97
141
|
}
|
|
98
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Get TimeShiftManualCaptureBuilder for manual time-shift.
|
|
145
|
+
*
|
|
146
|
+
* @function getTimeShiftManualCaptureBuilder
|
|
147
|
+
* @return created TimeShiftManualCaptureBuilder
|
|
148
|
+
*/
|
|
149
|
+
export function getTimeShiftManualCaptureBuilder(): TimeShiftManualCaptureBuilder {
|
|
150
|
+
return new TimeShiftManualCaptureBuilder();
|
|
151
|
+
}
|
|
152
|
+
|
|
99
153
|
/**
|
|
100
154
|
* Get VideoCapture.Builder for capture video.
|
|
101
155
|
*
|
|
@@ -415,8 +469,13 @@ export function deleteAllVideoFiles(): Promise<boolean> {
|
|
|
415
469
|
* @param {OptionNameEnum[]} optionNames List of OptionNameEnum.
|
|
416
470
|
* @return promise of Options acquired
|
|
417
471
|
*/
|
|
418
|
-
export function getOptions(
|
|
419
|
-
|
|
472
|
+
export async function getOptions(
|
|
473
|
+
optionNames: OptionNameEnum[]
|
|
474
|
+
): Promise<Options> {
|
|
475
|
+
const response = await ThetaClientReactNative.getOptions(optionNames);
|
|
476
|
+
const { options, json } = response;
|
|
477
|
+
const result = convertOptions(options, json);
|
|
478
|
+
return result;
|
|
420
479
|
}
|
|
421
480
|
|
|
422
481
|
/**
|
|
@@ -456,29 +515,34 @@ export function listAccessPoints(): Promise<AccessPoint[]> {
|
|
|
456
515
|
*
|
|
457
516
|
* @function setAccessPointDynamically
|
|
458
517
|
* @param {string} ssid SSID of the access point.
|
|
459
|
-
* @param {
|
|
460
|
-
* @param {
|
|
461
|
-
* @param {
|
|
462
|
-
* @param {
|
|
463
|
-
* @param {
|
|
518
|
+
* @param {} params - Optional parameters for additional configuration.
|
|
519
|
+
* @param {boolean} params.ssidStealth true if SSID stealth is enabled.
|
|
520
|
+
* @param {AuthModeEnum} params.authMode Authentication mode.
|
|
521
|
+
* @param {string} params.password Password. Not set if authMode is “NONE”.
|
|
522
|
+
* @param {number} params.connectionPriority Connection priority 1 to 5.
|
|
523
|
+
* @param {Proxy} params.proxy Proxy information to be used for the access point.
|
|
464
524
|
* @return promise of boolean result
|
|
465
525
|
*/
|
|
466
526
|
export function setAccessPointDynamically(
|
|
467
527
|
ssid: string,
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
528
|
+
params?: {
|
|
529
|
+
ssidStealth?: boolean;
|
|
530
|
+
authMode?: AuthModeEnum;
|
|
531
|
+
password?: string;
|
|
532
|
+
connectionPriority?: number;
|
|
533
|
+
proxy?: Proxy;
|
|
534
|
+
}
|
|
473
535
|
): Promise<boolean> {
|
|
474
|
-
|
|
536
|
+
const { ssidStealth, authMode, password, connectionPriority, proxy } =
|
|
537
|
+
params ?? {};
|
|
538
|
+
return ThetaClientReactNative.setAccessPointDynamically({
|
|
475
539
|
ssid,
|
|
476
540
|
ssidStealth,
|
|
477
541
|
authMode,
|
|
478
542
|
password,
|
|
479
543
|
connectionPriority,
|
|
480
|
-
proxy
|
|
481
|
-
);
|
|
544
|
+
proxy,
|
|
545
|
+
});
|
|
482
546
|
}
|
|
483
547
|
|
|
484
548
|
/**
|
|
@@ -486,28 +550,44 @@ export function setAccessPointDynamically(
|
|
|
486
550
|
*
|
|
487
551
|
* @function setAccessPointStatically
|
|
488
552
|
* @param {string} ssid SSID of the access point.
|
|
489
|
-
* @param {boolean} ssidStealth True if SSID stealth is enabled.
|
|
490
|
-
* @param {AuthModeEnum} authMode Authentication mode.
|
|
491
|
-
* @param {string} password Password. If authMode is "NONE", pass empty String.
|
|
492
|
-
* @param {number} connectionPriority Connection priority 1 to 5.
|
|
493
553
|
* @param {string} ipAddress IP address assigns to Theta.
|
|
494
554
|
* @param {string} subnetMask Subnet mask.
|
|
495
555
|
* @param {string} defaultGateway Default gateway.
|
|
496
|
-
* @param {
|
|
556
|
+
* @param {} params - Optional parameters for additional configuration.
|
|
557
|
+
* @param {boolean} params.ssidStealth True if SSID stealth is enabled.
|
|
558
|
+
* @param {AuthModeEnum} params.authMode Authentication mode.
|
|
559
|
+
* @param {string} params.password Password. Not set if authMode is “NONE”.
|
|
560
|
+
* @param {number} params.connectionPriority Connection priority 1 to 5.
|
|
561
|
+
* @param {string} params.dns1 Primary DNS server.
|
|
562
|
+
* @param {string} params.dns2 Secondary DNS server.
|
|
563
|
+
* @param {Proxy} params.proxy Proxy information to be used for the access point.
|
|
497
564
|
* @return promise of boolean result
|
|
498
565
|
*/
|
|
499
566
|
export function setAccessPointStatically(
|
|
500
567
|
ssid: string,
|
|
501
|
-
ssidStealth: boolean = false,
|
|
502
|
-
authMode: AuthModeEnum = AuthModeEnum.NONE,
|
|
503
|
-
password: string = '',
|
|
504
|
-
connectionPriority: number = 1,
|
|
505
568
|
ipAddress: string,
|
|
506
569
|
subnetMask: string,
|
|
507
570
|
defaultGateway: string,
|
|
508
|
-
|
|
571
|
+
params?: {
|
|
572
|
+
ssidStealth?: boolean;
|
|
573
|
+
authMode?: AuthModeEnum;
|
|
574
|
+
password?: string;
|
|
575
|
+
connectionPriority?: number;
|
|
576
|
+
dns1?: string;
|
|
577
|
+
dns2?: string;
|
|
578
|
+
proxy?: Proxy;
|
|
579
|
+
}
|
|
509
580
|
): Promise<boolean> {
|
|
510
|
-
|
|
581
|
+
const {
|
|
582
|
+
ssidStealth,
|
|
583
|
+
authMode,
|
|
584
|
+
password,
|
|
585
|
+
connectionPriority,
|
|
586
|
+
dns1,
|
|
587
|
+
dns2,
|
|
588
|
+
proxy,
|
|
589
|
+
} = params ?? {};
|
|
590
|
+
return ThetaClientReactNative.setAccessPointStatically({
|
|
511
591
|
ssid,
|
|
512
592
|
ssidStealth,
|
|
513
593
|
authMode,
|
|
@@ -516,7 +596,30 @@ export function setAccessPointStatically(
|
|
|
516
596
|
ipAddress,
|
|
517
597
|
subnetMask,
|
|
518
598
|
defaultGateway,
|
|
519
|
-
|
|
599
|
+
dns1,
|
|
600
|
+
dns2,
|
|
601
|
+
proxy,
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Updates the connection priority of the access point.
|
|
607
|
+
*
|
|
608
|
+
* @function setAccessPointConnectionPriority
|
|
609
|
+
* @param {string} ssid SSID of the access point.
|
|
610
|
+
* @param {number} connectionPriority Connection priority 1 to 5.
|
|
611
|
+
* @param {boolean} ssidStealth True if SSID stealth is enabled.
|
|
612
|
+
* @return promise of boolean result
|
|
613
|
+
*/
|
|
614
|
+
export function setAccessPointConnectionPriority(
|
|
615
|
+
ssid: string,
|
|
616
|
+
connectionPriority: number,
|
|
617
|
+
ssidStealth: boolean
|
|
618
|
+
): Promise<boolean> {
|
|
619
|
+
return ThetaClientReactNative.setAccessPointConnectionPriority(
|
|
620
|
+
ssid,
|
|
621
|
+
connectionPriority,
|
|
622
|
+
ssidStealth
|
|
520
623
|
);
|
|
521
624
|
}
|
|
522
625
|
|
|
@@ -20,6 +20,11 @@ export const CaptureStatusEnum = {
|
|
|
20
20
|
RETROSPECTIVE_IMAGE_RECORDING: 'RETROSPECTIVE_IMAGE_RECORDING',
|
|
21
21
|
/** Performing burst shooting */
|
|
22
22
|
BURST_SHOOTING: 'BURST_SHOOTING',
|
|
23
|
+
/**
|
|
24
|
+
* In the case of time-lag shooting by manual lens,
|
|
25
|
+
* set while waiting for the second shot to be taken after the first shot is completed.
|
|
26
|
+
*/
|
|
27
|
+
TIME_SHIFT_SHOOTING_IDLE: 'TIME_SHIFT_SHOOTING_IDLE',
|
|
23
28
|
} as const;
|
|
24
29
|
|
|
25
30
|
/** type definition of CaptureStatusEnum */
|
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
19
|
s.dependency "React-Core"
|
|
20
|
-
s.dependency "THETAClient", "1.
|
|
20
|
+
s.dependency "THETAClient", "1.13.1"
|
|
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
|