theta-client-react-native 1.1.0 → 1.3.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/android/build.gradle +1 -1
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +647 -0
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +487 -85
- package/ios/ThetaClientReactNative.h +6 -0
- package/ios/ThetaClientReactNative.mm +1675 -181
- package/ios/ThetaClientReactNative.xcodeproj/project.pbxproj +2 -2
- package/lib/commonjs/capture/index.js +11 -0
- package/lib/commonjs/capture/index.js.map +1 -1
- package/lib/commonjs/capture/notify.js +12 -0
- package/lib/commonjs/capture/notify.js.map +1 -0
- package/lib/commonjs/capture/time-shift-capture.js +135 -0
- package/lib/commonjs/capture/time-shift-capture.js.map +1 -0
- package/lib/commonjs/theta-repository/access-point.js.map +1 -1
- 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 +37 -4
- package/lib/commonjs/theta-repository/index.js.map +1 -1
- package/lib/commonjs/theta-repository/options/index.js +198 -0
- package/lib/commonjs/theta-repository/options/index.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.js +17 -0
- package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-bitrate.js +64 -0
- package/lib/commonjs/theta-repository/options/option-bitrate.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-burst-mode.js +23 -0
- package/lib/commonjs/theta-repository/options/option-burst-mode.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-burst-option.js +140 -0
- package/lib/commonjs/theta-repository/options/option-burst-option.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-capture-mode.js +30 -0
- package/lib/commonjs/theta-repository/options/option-capture-mode.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-continuous-number.js +71 -0
- package/lib/commonjs/theta-repository/options/option-continuous-number.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-filter.js +32 -0
- package/lib/commonjs/theta-repository/options/option-filter.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-preset.js +26 -0
- package/lib/commonjs/theta-repository/options/option-preset.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-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 +52 -26
- package/lib/commonjs/theta-repository/options/options.js.map +1 -1
- 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 +33 -1
- package/lib/commonjs/theta-repository/theta-files.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-info.js +29 -0
- package/lib/commonjs/theta-repository/theta-info.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-repository.js +56 -8
- package/lib/commonjs/theta-repository/theta-repository.js.map +1 -1
- 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/index.js +1 -0
- package/lib/module/capture/index.js.map +1 -1
- package/lib/module/capture/notify.js +6 -0
- package/lib/module/capture/notify.js.map +1 -0
- package/lib/module/capture/time-shift-capture.js +127 -0
- package/lib/module/capture/time-shift-capture.js.map +1 -0
- package/lib/module/theta-repository/access-point.js.map +1 -1
- 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 +4 -1
- package/lib/module/theta-repository/index.js.map +1 -1
- package/lib/module/theta-repository/options/index.js +18 -0
- package/lib/module/theta-repository/options/index.js.map +1 -1
- package/lib/module/theta-repository/options/option-ai-auto-thumbnail.js +10 -0
- package/lib/module/theta-repository/options/option-ai-auto-thumbnail.js.map +1 -0
- package/lib/module/theta-repository/options/option-bitrate.js +57 -0
- package/lib/module/theta-repository/options/option-bitrate.js.map +1 -0
- package/lib/module/theta-repository/options/option-burst-mode.js +16 -0
- package/lib/module/theta-repository/options/option-burst-mode.js.map +1 -0
- package/lib/module/theta-repository/options/option-burst-option.js +133 -0
- package/lib/module/theta-repository/options/option-burst-option.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-capture-mode.js +23 -0
- package/lib/module/theta-repository/options/option-capture-mode.js.map +1 -0
- package/lib/module/theta-repository/options/option-continuous-number.js +64 -0
- package/lib/module/theta-repository/options/option-continuous-number.js.map +1 -0
- package/lib/module/theta-repository/options/option-filter.js +25 -0
- package/lib/module/theta-repository/options/option-filter.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-preset.js +19 -0
- package/lib/module/theta-repository/options/option-preset.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-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 +50 -24
- package/lib/module/theta-repository/options/options.js.map +1 -1
- 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 +32 -0
- package/lib/module/theta-repository/theta-files.js.map +1 -1
- package/lib/module/theta-repository/theta-info.js +22 -0
- package/lib/module/theta-repository/theta-info.js.map +1 -1
- package/lib/module/theta-repository/theta-repository.js +54 -9
- package/lib/module/theta-repository/theta-repository.js.map +1 -1
- 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 +1 -1
- package/lib/typescript/capture/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/notify.d.ts +13 -0
- package/lib/typescript/capture/notify.d.ts.map +1 -0
- package/lib/typescript/capture/time-shift-capture.d.ts +64 -0
- package/lib/typescript/capture/time-shift-capture.d.ts.map +1 -0
- package/lib/typescript/theta-repository/access-point.d.ts +4 -1
- package/lib/typescript/theta-repository/access-point.d.ts.map +1 -1
- 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 +4 -1
- package/lib/typescript/theta-repository/index.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/index.d.ts +18 -0
- package/lib/typescript/theta-repository/options/index.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-ai-auto-thumbnail.d.ts +10 -0
- package/lib/typescript/theta-repository/options/option-ai-auto-thumbnail.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-bitrate.d.ts +57 -0
- package/lib/typescript/theta-repository/options/option-bitrate.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-burst-mode.d.ts +16 -0
- package/lib/typescript/theta-repository/options/option-burst-mode.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-burst-option.d.ts +153 -0
- package/lib/typescript/theta-repository/options/option-burst-option.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-capture-mode.d.ts +23 -0
- package/lib/typescript/theta-repository/options/option-capture-mode.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-continuous-number.d.ts +64 -0
- package/lib/typescript/theta-repository/options/option-continuous-number.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-filter.d.ts +25 -0
- package/lib/typescript/theta-repository/options/option-filter.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-preset.d.ts +18 -0
- package/lib/typescript/theta-repository/options/option-preset.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 +1 -1
- package/lib/typescript/theta-repository/options/option-white-balance-auto-strength.d.ts.map +1 -1
- 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 +187 -41
- package/lib/typescript/theta-repository/options/options.d.ts.map +1 -1
- 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 +66 -3
- package/lib/typescript/theta-repository/theta-files.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-info.d.ts +21 -0
- package/lib/typescript/theta-repository/theta-info.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-repository.d.ts +36 -8
- package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-state.d.ts +5 -5
- package/lib/typescript/theta-repository/theta-state.d.ts.map +1 -1
- 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 +1 -1
- package/src/capture/index.ts +1 -0
- package/src/capture/notify.ts +27 -0
- package/src/capture/time-shift-capture.ts +145 -0
- package/src/theta-repository/access-point.ts +5 -1
- package/src/theta-repository/digest-auth.ts +16 -0
- package/src/theta-repository/index.ts +4 -1
- package/src/theta-repository/options/index.ts +18 -0
- package/src/theta-repository/options/option-ai-auto-thumbnail.ts +11 -0
- package/src/theta-repository/options/option-bitrate.ts +59 -0
- package/src/theta-repository/options/option-burst-mode.ts +16 -0
- package/src/theta-repository/options/option-burst-option.ts +175 -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-capture-mode.ts +24 -0
- package/src/theta-repository/options/option-continuous-number.ts +65 -0
- package/src/theta-repository/options/option-filter.ts +25 -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-preset.ts +19 -0
- package/src/theta-repository/options/option-preview-format.ts +26 -0
- package/src/theta-repository/options/option-proxy.ts +22 -0
- package/src/theta-repository/options/option-shooting-method.ts +35 -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 +1 -1
- package/src/theta-repository/options/option-wlan-frequency.ts +16 -0
- package/src/theta-repository/options/options.ts +188 -46
- package/src/theta-repository/theta-config.ts +20 -0
- package/src/theta-repository/theta-files.ts +73 -3
- package/src/theta-repository/theta-info.ts +23 -0
- package/src/theta-repository/theta-repository.ts +87 -18
- package/src/theta-repository/theta-state.ts +5 -5
- package/src/theta-repository/theta-timeout.ts +21 -0
- package/theta-client-react-native.podspec +1 -1
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import { AccessPoint, AuthModeEnum } from './access-point';
|
|
2
|
-
import type { FileTypeEnum, ThetaFiles } from './theta-files';
|
|
2
|
+
import type { FileTypeEnum, StorageEnum, ThetaFiles } from './theta-files';
|
|
3
3
|
import type { ThetaState } from './theta-state';
|
|
4
|
-
import type { ThetaInfo } from './theta-info';
|
|
4
|
+
import type { ThetaInfo, ThetaModel } from './theta-info';
|
|
5
5
|
import type { MetaInfo } from './theta-meta';
|
|
6
6
|
import type { PluginInfo } from './theta-plugin';
|
|
7
7
|
|
|
8
8
|
import { NativeModules } from 'react-native';
|
|
9
|
-
import type {
|
|
10
|
-
|
|
9
|
+
import type {
|
|
10
|
+
OptionNameEnum,
|
|
11
|
+
Options,
|
|
12
|
+
CaptureModeEnum,
|
|
13
|
+
Proxy,
|
|
14
|
+
} from './options';
|
|
15
|
+
import {
|
|
16
|
+
PhotoCaptureBuilder,
|
|
17
|
+
VideoCaptureBuilder,
|
|
18
|
+
TimeShiftCaptureBuilder,
|
|
19
|
+
} from '../capture';
|
|
20
|
+
import type { ThetaConfig } from './theta-config';
|
|
21
|
+
import type { ThetaTimeout } from './theta-timeout';
|
|
11
22
|
const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
|
|
12
23
|
|
|
13
24
|
/**
|
|
@@ -15,13 +26,26 @@ const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
|
|
|
15
26
|
*
|
|
16
27
|
* @function initialize
|
|
17
28
|
* @param {string} endPoint optional endpoint of camera
|
|
29
|
+
* @param {ThetaConfig} config Configuration of initialize. If null, get from THETA.
|
|
30
|
+
* @param {ThetaTimeout} timeout Timeout of HTTP call.
|
|
18
31
|
* @return promise of boolean result
|
|
19
32
|
**/
|
|
20
|
-
export function initialize(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
33
|
+
export function initialize(
|
|
34
|
+
endPoint: string = 'http://192.168.1.1',
|
|
35
|
+
config?: ThetaConfig,
|
|
36
|
+
timeout?: ThetaTimeout
|
|
37
|
+
): Promise<boolean> {
|
|
38
|
+
return ThetaClientReactNative.initialize(endPoint, config, timeout);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Returns whether it is initialized or not.
|
|
43
|
+
*
|
|
44
|
+
* @function isInitialized
|
|
45
|
+
* @return promise of boolean result
|
|
46
|
+
**/
|
|
47
|
+
export function isInitialized(): Promise<boolean> {
|
|
48
|
+
return ThetaClientReactNative.isInitialized();
|
|
25
49
|
}
|
|
26
50
|
|
|
27
51
|
/**
|
|
@@ -46,6 +70,17 @@ export function getPhotoCaptureBuilder(): PhotoCaptureBuilder {
|
|
|
46
70
|
return new PhotoCaptureBuilder();
|
|
47
71
|
}
|
|
48
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Get TimeShiftCaptureBuilder for time-shift.
|
|
75
|
+
*
|
|
76
|
+
* @function getTimeShiftCaptureBuilder
|
|
77
|
+
* @return created TimeShiftCaptureBuilder
|
|
78
|
+
*/
|
|
79
|
+
export function getTimeShiftCaptureBuilder(): TimeShiftCaptureBuilder {
|
|
80
|
+
ThetaClientReactNative.getTimeShiftCaptureBuilder();
|
|
81
|
+
return new TimeShiftCaptureBuilder();
|
|
82
|
+
}
|
|
83
|
+
|
|
49
84
|
/**
|
|
50
85
|
* Get PhotoCapture.Builder for capture video.
|
|
51
86
|
*
|
|
@@ -154,6 +189,24 @@ export function setBluetoothDevice(uuid: string): Promise<String> {
|
|
|
154
189
|
return ThetaClientReactNative.setBluetoothDevice(uuid);
|
|
155
190
|
}
|
|
156
191
|
|
|
192
|
+
/**
|
|
193
|
+
* Returns the connected THETA model.
|
|
194
|
+
*
|
|
195
|
+
* @function getThetaModel
|
|
196
|
+
* @return promise of THETA model
|
|
197
|
+
**/
|
|
198
|
+
export function getThetaModel(): Promise<ThetaModel | undefined> {
|
|
199
|
+
return new Promise<ThetaModel | undefined>(async (resolve, reject) => {
|
|
200
|
+
await ThetaClientReactNative.getThetaModel()
|
|
201
|
+
.then((result?: string) => {
|
|
202
|
+
resolve((result as ThetaModel) ?? undefined);
|
|
203
|
+
})
|
|
204
|
+
.catch((error: any) => {
|
|
205
|
+
reject(error);
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
|
|
157
210
|
/**
|
|
158
211
|
* Get basic information about Theta.
|
|
159
212
|
*
|
|
@@ -186,18 +239,21 @@ export function getThetaState(): Promise<ThetaState> {
|
|
|
186
239
|
* @param {number} entryCount Desired number of entries to return. If
|
|
187
240
|
* entryCount is more than the number of remaining files, just
|
|
188
241
|
* return entries of actual remaining files.
|
|
242
|
+
* @param {StorageEnum} storage Desired storage. If omitted, return current storage. (RICOH THETA X Version 2.00.0 or later)
|
|
189
243
|
* @return promise with a list of file information and number of totalEntries.
|
|
190
244
|
* see [camera.listFiles](https://github.com/ricohapi/theta-api-specs/blob/main/theta-web-api-v2.1/commands/camera.list_files.md).
|
|
191
245
|
*/
|
|
192
246
|
export function listFiles(
|
|
193
247
|
fileTypeEnum: FileTypeEnum,
|
|
194
248
|
startPosition: number = 0,
|
|
195
|
-
entryCount: number
|
|
249
|
+
entryCount: number,
|
|
250
|
+
storage?: StorageEnum
|
|
196
251
|
): Promise<ThetaFiles> {
|
|
197
252
|
return ThetaClientReactNative.listFiles(
|
|
198
253
|
fileTypeEnum,
|
|
199
254
|
startPosition,
|
|
200
|
-
entryCount
|
|
255
|
+
entryCount,
|
|
256
|
+
storage
|
|
201
257
|
);
|
|
202
258
|
}
|
|
203
259
|
|
|
@@ -295,6 +351,7 @@ export function listAccessPoints(): Promise<AccessPoint[]> {
|
|
|
295
351
|
* @param {AuthModeEnum} authMode Authentication mode.
|
|
296
352
|
* @param {string} password Password. If authMode is "NONE", pass empty String.
|
|
297
353
|
* @param {number} connectionPriority Connection priority 1 to 5.
|
|
354
|
+
* @param {Proxy} proxy Proxy information to be used for the access point.
|
|
298
355
|
* @return promise of boolean result
|
|
299
356
|
*/
|
|
300
357
|
export function setAccessPointDynamically(
|
|
@@ -302,14 +359,16 @@ export function setAccessPointDynamically(
|
|
|
302
359
|
ssidStealth: boolean = false,
|
|
303
360
|
authMode: AuthModeEnum = AuthModeEnum.NONE,
|
|
304
361
|
password: string = '',
|
|
305
|
-
connectionPriority: number = 1
|
|
362
|
+
connectionPriority: number = 1,
|
|
363
|
+
proxy?: Proxy
|
|
306
364
|
): Promise<boolean> {
|
|
307
365
|
return ThetaClientReactNative.setAccessPointDynamically(
|
|
308
366
|
ssid,
|
|
309
367
|
ssidStealth,
|
|
310
368
|
authMode,
|
|
311
369
|
password,
|
|
312
|
-
connectionPriority
|
|
370
|
+
connectionPriority,
|
|
371
|
+
proxy
|
|
313
372
|
);
|
|
314
373
|
}
|
|
315
374
|
|
|
@@ -325,6 +384,7 @@ export function setAccessPointDynamically(
|
|
|
325
384
|
* @param {string} ipAddress IP address assigns to Theta.
|
|
326
385
|
* @param {string} subnetMask Subnet mask.
|
|
327
386
|
* @param {string} defaultGateway Default gateway.
|
|
387
|
+
* @param {Proxy} proxy Proxy information to be used for the access point.
|
|
328
388
|
* @return promise of boolean result
|
|
329
389
|
*/
|
|
330
390
|
export function setAccessPointStatically(
|
|
@@ -335,7 +395,8 @@ export function setAccessPointStatically(
|
|
|
335
395
|
connectionPriority: number = 1,
|
|
336
396
|
ipAddress: string,
|
|
337
397
|
subnetMask: string,
|
|
338
|
-
defaultGateway: string
|
|
398
|
+
defaultGateway: string,
|
|
399
|
+
proxy?: Proxy
|
|
339
400
|
): Promise<boolean> {
|
|
340
401
|
return ThetaClientReactNative.setAccessPointStatically(
|
|
341
402
|
ssid,
|
|
@@ -345,7 +406,8 @@ export function setAccessPointStatically(
|
|
|
345
406
|
connectionPriority,
|
|
346
407
|
ipAddress,
|
|
347
408
|
subnetMask,
|
|
348
|
-
defaultGateway
|
|
409
|
+
defaultGateway,
|
|
410
|
+
proxy
|
|
349
411
|
);
|
|
350
412
|
}
|
|
351
413
|
|
|
@@ -380,7 +442,9 @@ export function getMySetting(captureMode: CaptureModeEnum): Promise<Options> {
|
|
|
380
442
|
* @param optionNames List of option names to acquire
|
|
381
443
|
* @returns Options of my setting
|
|
382
444
|
*/
|
|
383
|
-
export function getMySettingFromOldModel(
|
|
445
|
+
export function getMySettingFromOldModel(
|
|
446
|
+
optionNames: OptionNameEnum[]
|
|
447
|
+
): Promise<Options> {
|
|
384
448
|
return ThetaClientReactNative.getMySettingFromOldModel(optionNames);
|
|
385
449
|
}
|
|
386
450
|
|
|
@@ -391,7 +455,10 @@ export function getMySettingFromOldModel(optionNames: OptionNameEnum[]): Promise
|
|
|
391
455
|
* @param options registered to My Settings
|
|
392
456
|
* @returns Promise of boolean result, always true
|
|
393
457
|
*/
|
|
394
|
-
export function setMySetting(
|
|
458
|
+
export function setMySetting(
|
|
459
|
+
captureMode: CaptureModeEnum,
|
|
460
|
+
options: Options
|
|
461
|
+
): Promise<boolean> {
|
|
395
462
|
return ThetaClientReactNative.setMySetting(captureMode, options);
|
|
396
463
|
}
|
|
397
464
|
|
|
@@ -400,7 +467,9 @@ export function setMySetting(captureMode: CaptureModeEnum, options: Options): Pr
|
|
|
400
467
|
* @param captureMode The target shooting mode
|
|
401
468
|
* @returns Promise of boolean result, always true
|
|
402
469
|
*/
|
|
403
|
-
export function deleteMySetting(
|
|
470
|
+
export function deleteMySetting(
|
|
471
|
+
captureMode: CaptureModeEnum
|
|
472
|
+
): Promise<boolean> {
|
|
404
473
|
return ThetaClientReactNative.deleteMySetting(captureMode);
|
|
405
474
|
}
|
|
406
475
|
|
|
@@ -10,7 +10,7 @@ export const ChargingStateEnum = {
|
|
|
10
10
|
|
|
11
11
|
/** type definition of ChargingStateEnum */
|
|
12
12
|
export type ChargingStateEnum =
|
|
13
|
-
typeof ChargingStateEnum[keyof typeof ChargingStateEnum];
|
|
13
|
+
(typeof ChargingStateEnum)[keyof typeof ChargingStateEnum];
|
|
14
14
|
|
|
15
15
|
/** Capture Status constants */
|
|
16
16
|
export const CaptureStatusEnum = {
|
|
@@ -34,7 +34,7 @@ export const CaptureStatusEnum = {
|
|
|
34
34
|
|
|
35
35
|
/** type definition of CaptureStatusEnum */
|
|
36
36
|
export type CaptureStatusEnum =
|
|
37
|
-
typeof CaptureStatusEnum[keyof typeof CaptureStatusEnum];
|
|
37
|
+
(typeof CaptureStatusEnum)[keyof typeof CaptureStatusEnum];
|
|
38
38
|
|
|
39
39
|
/** Shooting function status constants */
|
|
40
40
|
export const ShootingFunctionEnum = {
|
|
@@ -48,7 +48,7 @@ export const ShootingFunctionEnum = {
|
|
|
48
48
|
|
|
49
49
|
/** type definition of ShootingFunctionEnum */
|
|
50
50
|
export type ShootingFunctionEnum =
|
|
51
|
-
typeof ShootingFunctionEnum[keyof typeof ShootingFunctionEnum];
|
|
51
|
+
(typeof ShootingFunctionEnum)[keyof typeof ShootingFunctionEnum];
|
|
52
52
|
|
|
53
53
|
/** Microphone option constants */
|
|
54
54
|
export const MicrophoneOptionEnum = {
|
|
@@ -62,7 +62,7 @@ export const MicrophoneOptionEnum = {
|
|
|
62
62
|
|
|
63
63
|
/** type definition of MicrophoneOptionEnum */
|
|
64
64
|
export type MicrophoneOptionEnum =
|
|
65
|
-
typeof MicrophoneOptionEnum[keyof typeof MicrophoneOptionEnum];
|
|
65
|
+
(typeof MicrophoneOptionEnum)[keyof typeof MicrophoneOptionEnum];
|
|
66
66
|
|
|
67
67
|
/** Camera error constants */
|
|
68
68
|
export const CameraErrorEnum = {
|
|
@@ -117,7 +117,7 @@ export const CameraErrorEnum = {
|
|
|
117
117
|
|
|
118
118
|
/** type definition of CameraErrorEnum */
|
|
119
119
|
export type CameraErrorEnum =
|
|
120
|
-
typeof CameraErrorEnum[keyof typeof CameraErrorEnum];
|
|
120
|
+
(typeof CameraErrorEnum)[keyof typeof CameraErrorEnum];
|
|
121
121
|
|
|
122
122
|
/** Mutable values representing Theta status. */
|
|
123
123
|
export type ThetaState = {
|
|
@@ -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.3.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
|