theta-client-react-native 1.10.2 → 1.11.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 +1 -1
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +9 -0
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +41 -5
- package/ios/ConvertUtil.swift +12 -0
- package/ios/ThetaClientReactNative.swift +38 -5
- package/lib/commonjs/capture/video-capture.js +10 -1
- package/lib/commonjs/capture/video-capture.js.map +1 -1
- package/lib/commonjs/theta-repository/index.js +11 -0
- package/lib/commonjs/theta-repository/index.js.map +1 -1
- package/lib/commonjs/theta-repository/options/index.js +11 -0
- package/lib/commonjs/theta-repository/options/index.js.map +1 -1
- package/lib/commonjs/theta-repository/options/option-camera-power.js +32 -0
- package/lib/commonjs/theta-repository/options/option-camera-power.js.map +1 -0
- package/lib/commonjs/theta-repository/options/options.js +2 -0
- package/lib/commonjs/theta-repository/options/options.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-repository.js +2 -1
- package/lib/commonjs/theta-repository/theta-repository.js.map +1 -1
- package/lib/module/capture/video-capture.js +10 -1
- package/lib/module/capture/video-capture.js.map +1 -1
- package/lib/module/theta-repository/index.js +1 -0
- package/lib/module/theta-repository/index.js.map +1 -1
- package/lib/module/theta-repository/options/index.js +1 -0
- package/lib/module/theta-repository/options/index.js.map +1 -1
- package/lib/module/theta-repository/options/option-camera-power.js +26 -0
- package/lib/module/theta-repository/options/option-camera-power.js.map +1 -0
- package/lib/module/theta-repository/options/options.js +2 -0
- package/lib/module/theta-repository/options/options.js.map +1 -1
- package/lib/module/theta-repository/theta-repository.js +2 -1
- package/lib/module/theta-repository/theta-repository.js.map +1 -1
- package/lib/typescript/capture/video-capture.d.ts +2 -1
- package/lib/typescript/capture/video-capture.d.ts.map +1 -1
- package/lib/typescript/theta-repository/index.d.ts +1 -0
- package/lib/typescript/theta-repository/index.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/index.d.ts +1 -0
- package/lib/typescript/theta-repository/options/index.d.ts.map +1 -1
- package/lib/typescript/theta-repository/options/option-camera-power.d.ts +26 -0
- package/lib/typescript/theta-repository/options/option-camera-power.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/options.d.ts +5 -0
- package/lib/typescript/theta-repository/options/options.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-repository.d.ts +2 -1
- package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/capture/video-capture.ts +18 -1
- package/src/theta-repository/index.ts +1 -0
- package/src/theta-repository/options/index.ts +1 -0
- package/src/theta-repository/options/option-camera-power.ts +28 -0
- package/src/theta-repository/options/options.ts +5 -0
- package/src/theta-repository/theta-repository.ts +3 -2
- package/theta-client-react-native.podspec +1 -1
|
@@ -32,6 +32,7 @@ import type { OffDelayEnum } from './option-off-delay';
|
|
|
32
32
|
import type { SleepDelayEnum } from './option-sleep-delay';
|
|
33
33
|
import type { EthernetConfig } from './option-ethernet-config';
|
|
34
34
|
import type { FileFormatEnum } from './option-file-format';
|
|
35
|
+
import type { CameraPowerEnum } from './option-camera-power';
|
|
35
36
|
|
|
36
37
|
/** Aperture value. */
|
|
37
38
|
export const ApertureEnum = {
|
|
@@ -348,6 +349,8 @@ export const OptionNameEnum = {
|
|
|
348
349
|
CameraControlSource: 'CameraControlSource',
|
|
349
350
|
/** cameraMode */
|
|
350
351
|
CameraMode: 'CameraMode',
|
|
352
|
+
/** cameraPower */
|
|
353
|
+
CameraPower: 'CameraPower',
|
|
351
354
|
/** captureInterval */
|
|
352
355
|
CaptureInterval: 'CaptureInterval',
|
|
353
356
|
/** captureMode */
|
|
@@ -474,6 +477,8 @@ export type Options = {
|
|
|
474
477
|
cameraControlSource?: CameraControlSourceEnum;
|
|
475
478
|
/** Camera mode. */
|
|
476
479
|
cameraMode?: CameraModeEnum;
|
|
480
|
+
/** Camera power state */
|
|
481
|
+
cameraPower?: CameraPowerEnum;
|
|
477
482
|
/**
|
|
478
483
|
* Shooting interval (sec.) for interval shooting.
|
|
479
484
|
*
|
|
@@ -204,9 +204,10 @@ export function getLivePreview(): Promise<boolean> {
|
|
|
204
204
|
* Stop live preview.
|
|
205
205
|
*
|
|
206
206
|
* @function StopLivePreview
|
|
207
|
+
* @return promise of boolean result
|
|
207
208
|
*/
|
|
208
|
-
export function stopLivePreview() {
|
|
209
|
-
ThetaClientReactNative.stopLivePreview();
|
|
209
|
+
export function stopLivePreview(): Promise<boolean> {
|
|
210
|
+
return ThetaClientReactNative.stopLivePreview();
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
/**
|
|
@@ -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.11.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
|