theta-client-react-native 1.0.1 → 1.1.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 +34 -0
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +311 -9
- package/ios/ThetaClientReactNative.mm +552 -67
- package/lib/commonjs/capture/capture.js +118 -0
- package/lib/commonjs/capture/capture.js.map +1 -0
- package/lib/commonjs/capture/index.js +39 -0
- package/lib/commonjs/capture/index.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/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/index.js +72 -0
- package/lib/commonjs/theta-repository/index.js.map +1 -0
- package/lib/commonjs/theta-repository/options/index.js +28 -0
- package/lib/commonjs/theta-repository/options/index.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/options.js +462 -0
- package/lib/commonjs/theta-repository/options/options.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-files.js +23 -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 +479 -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/module/capture/capture.js +111 -0
- package/lib/module/capture/capture.js.map +1 -0
- package/lib/module/capture/index.js +4 -0
- package/lib/module/capture/index.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/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/index.js +7 -0
- package/lib/module/theta-repository/index.js.map +1 -0
- package/lib/module/theta-repository/options/index.js +3 -0
- package/lib/module/theta-repository/options/index.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/options.js +454 -0
- package/lib/module/theta-repository/options/options.js.map +1 -0
- package/lib/module/theta-repository/theta-files.js +16 -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 +437 -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/typescript/capture/capture.d.ts +71 -0
- package/lib/typescript/capture/capture.d.ts.map +1 -0
- package/lib/typescript/capture/index.d.ts +4 -0
- package/lib/typescript/capture/index.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/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 +33 -0
- package/lib/typescript/theta-repository/access-point.d.ts.map +1 -0
- package/lib/typescript/theta-repository/index.d.ts +7 -0
- package/lib/typescript/theta-repository/index.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/index.d.ts +3 -0
- package/lib/typescript/theta-repository/options/index.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/options.d.ts +499 -0
- package/lib/typescript/theta-repository/options/options.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-files.d.ts +32 -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 +312 -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/package.json +1 -1
- package/src/capture/capture.ts +124 -0
- package/src/capture/index.ts +3 -0
- package/src/capture/photo-capture.ts +62 -0
- package/src/capture/video-capture.ts +69 -0
- package/src/index.tsx +3 -1243
- package/src/theta-repository/access-point.ts +34 -0
- package/src/theta-repository/index.ts +6 -0
- package/src/theta-repository/options/index.ts +2 -0
- package/src/theta-repository/options/option-white-balance-auto-strength.ts +19 -0
- package/src/theta-repository/options/options.ts +554 -0
- package/src/theta-repository/theta-files.ts +34 -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 +476 -0
- package/src/theta-repository/theta-state.ts +164 -0
- package/theta-client-react-native.podspec +1 -1
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
import { AuthModeEnum } from './access-point';
|
|
2
|
+
import { NativeModules } from 'react-native';
|
|
3
|
+
import { PhotoCaptureBuilder, VideoCaptureBuilder } from '../capture';
|
|
4
|
+
const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* initialize theta client sdk
|
|
8
|
+
*
|
|
9
|
+
* @function initialize
|
|
10
|
+
* @param {string} endPoint optional endpoint of camera
|
|
11
|
+
* @return promise of boolean result
|
|
12
|
+
**/
|
|
13
|
+
export function initialize(endPoint) {
|
|
14
|
+
if (!endPoint) {
|
|
15
|
+
endPoint = 'http://192.168.1.1';
|
|
16
|
+
}
|
|
17
|
+
return ThetaClientReactNative.initialize(endPoint);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Reset all device settings and capture settings.
|
|
22
|
+
* After reset, the camera will be restarted.
|
|
23
|
+
*
|
|
24
|
+
* @function reset
|
|
25
|
+
* @return promise of boolean result
|
|
26
|
+
*/
|
|
27
|
+
export function reset() {
|
|
28
|
+
return ThetaClientReactNative.reset();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Get PhotoCaptureBuilder for take a picture.
|
|
33
|
+
*
|
|
34
|
+
* @function getPhotoCaptureBuilder
|
|
35
|
+
* @return created PhotoCaptureBuilder
|
|
36
|
+
*/
|
|
37
|
+
export function getPhotoCaptureBuilder() {
|
|
38
|
+
ThetaClientReactNative.getPhotoCaptureBuilder();
|
|
39
|
+
return new PhotoCaptureBuilder();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Get PhotoCapture.Builder for capture video.
|
|
44
|
+
*
|
|
45
|
+
* @function getVideoCaptureBuilder
|
|
46
|
+
* @return created VideoCaptureBuilder instance
|
|
47
|
+
*/
|
|
48
|
+
export function getVideoCaptureBuilder() {
|
|
49
|
+
ThetaClientReactNative.getVideoCaptureBuilder();
|
|
50
|
+
return new VideoCaptureBuilder();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Start live preview.
|
|
55
|
+
* preview frame (JPEG DataURL) send THETA_EVENT_NAME event as
|
|
56
|
+
* {
|
|
57
|
+
* "data": "DataURL of JPEG Frame"
|
|
58
|
+
* }
|
|
59
|
+
*
|
|
60
|
+
* @function StartLivePreview
|
|
61
|
+
* @return promise of boolean result
|
|
62
|
+
*/
|
|
63
|
+
export function getLivePreview() {
|
|
64
|
+
return ThetaClientReactNative.getLivePreview();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Stop live preview.
|
|
69
|
+
*
|
|
70
|
+
* @function StopLivePreview
|
|
71
|
+
*/
|
|
72
|
+
export function stopLivePreview() {
|
|
73
|
+
ThetaClientReactNative.stopLivePreview();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Restore setting to THETA
|
|
78
|
+
*
|
|
79
|
+
* @function restoreSettings
|
|
80
|
+
* @return promise of boolean result
|
|
81
|
+
*/
|
|
82
|
+
export function restoreSettings() {
|
|
83
|
+
return ThetaClientReactNative.restoreSettings();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Stop running self-timer.
|
|
88
|
+
*
|
|
89
|
+
* @function stopSelfTimer
|
|
90
|
+
* @return promise of boolean result
|
|
91
|
+
*/
|
|
92
|
+
export function stopSelfTimer() {
|
|
93
|
+
return ThetaClientReactNative.stopSelfTimer();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Converts the movie format of a saved movie.
|
|
98
|
+
*
|
|
99
|
+
* @function convertVideoFormats
|
|
100
|
+
* @param {string} fileUrl URL of a saved movie file to convert
|
|
101
|
+
* @param {boolean} toLowResolution If true generates lower resolution
|
|
102
|
+
* video, otherwise same resolution.
|
|
103
|
+
* @param {boolean} applyTopBottomCorrection apply Top/bottom
|
|
104
|
+
* correction. This parameter is ignored on Theta X.
|
|
105
|
+
* @return promise of URL of a converted movie file.
|
|
106
|
+
*/
|
|
107
|
+
export function convertVideoFormats(fileUrl, toLowResolution, applyTopBottomCorrection) {
|
|
108
|
+
return ThetaClientReactNative.convertVideoFormats(fileUrl, toLowResolution, applyTopBottomCorrection);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Cancels the movie format conversion.
|
|
113
|
+
*
|
|
114
|
+
* @function cancelVideoConvert
|
|
115
|
+
* @return promise of boolean result
|
|
116
|
+
*/
|
|
117
|
+
export function cancelVideoConvert() {
|
|
118
|
+
return ThetaClientReactNative.cancelVideoConvert();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Turns the wireless LAN off.
|
|
123
|
+
*
|
|
124
|
+
* @function finishWlan
|
|
125
|
+
* @return promise of boolean result
|
|
126
|
+
*/
|
|
127
|
+
export function finishWlan() {
|
|
128
|
+
return ThetaClientReactNative.finishWlan();
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Registers identification information (UUID) of a BLE device.
|
|
133
|
+
*
|
|
134
|
+
* @function setBluetoothDevice
|
|
135
|
+
* @param {string} uuid UUID of the BLE device to set.
|
|
136
|
+
* @return promise of String result
|
|
137
|
+
*/
|
|
138
|
+
export function setBluetoothDevice(uuid) {
|
|
139
|
+
return ThetaClientReactNative.setBluetoothDevice(uuid);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Get basic information about Theta.
|
|
144
|
+
*
|
|
145
|
+
* @function getThetaInfo
|
|
146
|
+
* @return promise of ThetaInfo
|
|
147
|
+
**/
|
|
148
|
+
export function getThetaInfo() {
|
|
149
|
+
return ThetaClientReactNative.getThetaInfo();
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Get current state of Theta.
|
|
154
|
+
*
|
|
155
|
+
* @function getThetaState
|
|
156
|
+
* @return promise of ThetaState
|
|
157
|
+
**/
|
|
158
|
+
export function getThetaState() {
|
|
159
|
+
return ThetaClientReactNative.getThetaState();
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Lists information of images and videos in Theta.
|
|
164
|
+
*
|
|
165
|
+
* @function listFiles
|
|
166
|
+
* @param {FileTypeEnum} fileType Type of the files to be listed.
|
|
167
|
+
* @param {number} startPosition The position of the first file to be
|
|
168
|
+
* returned in the list. 0 represents the first file. If
|
|
169
|
+
* startPosition is larger than the position of the last file, an
|
|
170
|
+
* empty list is returned.
|
|
171
|
+
* @param {number} entryCount Desired number of entries to return. If
|
|
172
|
+
* entryCount is more than the number of remaining files, just
|
|
173
|
+
* return entries of actual remaining files.
|
|
174
|
+
* @return promise with a list of file information and number of totalEntries.
|
|
175
|
+
* see [camera.listFiles](https://github.com/ricohapi/theta-api-specs/blob/main/theta-web-api-v2.1/commands/camera.list_files.md).
|
|
176
|
+
*/
|
|
177
|
+
export function listFiles(fileTypeEnum) {
|
|
178
|
+
let startPosition = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
179
|
+
let entryCount = arguments.length > 2 ? arguments[2] : undefined;
|
|
180
|
+
return ThetaClientReactNative.listFiles(fileTypeEnum, startPosition, entryCount);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Delete files in Theta.
|
|
185
|
+
*
|
|
186
|
+
* @function deleteFiles
|
|
187
|
+
* @param {string[]} fileUrls URLs of the file to be deleted.
|
|
188
|
+
* @return promise of boolean result
|
|
189
|
+
*/
|
|
190
|
+
export function deleteFiles(fileUrls) {
|
|
191
|
+
return ThetaClientReactNative.deleteFiles(fileUrls);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Delete all files in Theta.
|
|
196
|
+
*
|
|
197
|
+
* @function deleteAllFiles
|
|
198
|
+
* @return promise of boolean result
|
|
199
|
+
*/
|
|
200
|
+
export function deleteAllFiles() {
|
|
201
|
+
return ThetaClientReactNative.deleteAllFiles();
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Delete all image files in Theta.
|
|
206
|
+
*
|
|
207
|
+
* @function deleteAllImageFiles
|
|
208
|
+
* @return promise of boolean result
|
|
209
|
+
*/
|
|
210
|
+
export function deleteAllImageFiles() {
|
|
211
|
+
return ThetaClientReactNative.deleteAllImageFiles();
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Delete all video files in Theta.
|
|
216
|
+
*
|
|
217
|
+
* @function deleteAllVideoFiles
|
|
218
|
+
* @return promise of boolean result
|
|
219
|
+
*/
|
|
220
|
+
export function deleteAllVideoFiles() {
|
|
221
|
+
return ThetaClientReactNative.deleteAllVideoFiles();
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Acquires the properties and property support specifications for
|
|
226
|
+
* shooting, the camera, etc.
|
|
227
|
+
*
|
|
228
|
+
* @function getOptions
|
|
229
|
+
* @param {OptionNameEnum[]} optionNames List of OptionNameEnum.
|
|
230
|
+
* @return promise of Options acquired
|
|
231
|
+
*/
|
|
232
|
+
export function getOptions(optionNames) {
|
|
233
|
+
return ThetaClientReactNative.getOptions(optionNames);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Property settings for shooting, the camera, etc.
|
|
238
|
+
*
|
|
239
|
+
* @function setOptions
|
|
240
|
+
* @param {Options} options Camera setting options.
|
|
241
|
+
* @return promise of boolean result
|
|
242
|
+
*/
|
|
243
|
+
export function setOptions(options) {
|
|
244
|
+
return ThetaClientReactNative.setOptions(options);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Get metadata of a still image
|
|
249
|
+
*
|
|
250
|
+
* @function getMetadata
|
|
251
|
+
* @param {string} fileUrl URL of a still image file to get metadata
|
|
252
|
+
* @return promise of MetaInfo
|
|
253
|
+
*/
|
|
254
|
+
export function getMetadata(fileUrl) {
|
|
255
|
+
return ThetaClientReactNative.getMetadata(fileUrl);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Acquires the access point list used in client mode.
|
|
260
|
+
*
|
|
261
|
+
* @function listAccessPoints
|
|
262
|
+
* @return promise of AccessPoint list
|
|
263
|
+
*/
|
|
264
|
+
export function listAccessPoints() {
|
|
265
|
+
return ThetaClientReactNative.listAccessPoints();
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Set access point. IP address is set dynamically.
|
|
270
|
+
*
|
|
271
|
+
* @function setAccessPointDynamically
|
|
272
|
+
* @param {string} ssid SSID of the access point.
|
|
273
|
+
* @param {boolean} ssidStealth true if SSID stealth is enabled.
|
|
274
|
+
* @param {AuthModeEnum} authMode Authentication mode.
|
|
275
|
+
* @param {string} password Password. If authMode is "NONE", pass empty String.
|
|
276
|
+
* @param {number} connectionPriority Connection priority 1 to 5.
|
|
277
|
+
* @return promise of boolean result
|
|
278
|
+
*/
|
|
279
|
+
export function setAccessPointDynamically(ssid) {
|
|
280
|
+
let ssidStealth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
281
|
+
let authMode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : AuthModeEnum.NONE;
|
|
282
|
+
let password = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
|
|
283
|
+
let connectionPriority = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
|
|
284
|
+
return ThetaClientReactNative.setAccessPointDynamically(ssid, ssidStealth, authMode, password, connectionPriority);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Set access point. IP address is set statically.
|
|
289
|
+
*
|
|
290
|
+
* @function setAccessPointStatically
|
|
291
|
+
* @param {string} ssid SSID of the access point.
|
|
292
|
+
* @param {boolean} ssidStealth True if SSID stealth is enabled.
|
|
293
|
+
* @param {AuthModeEnum} authMode Authentication mode.
|
|
294
|
+
* @param {string} password Password. If authMode is "NONE", pass empty String.
|
|
295
|
+
* @param {number} connectionPriority Connection priority 1 to 5.
|
|
296
|
+
* @param {string} ipAddress IP address assigns to Theta.
|
|
297
|
+
* @param {string} subnetMask Subnet mask.
|
|
298
|
+
* @param {string} defaultGateway Default gateway.
|
|
299
|
+
* @return promise of boolean result
|
|
300
|
+
*/
|
|
301
|
+
export function setAccessPointStatically(ssid) {
|
|
302
|
+
let ssidStealth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
303
|
+
let authMode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : AuthModeEnum.NONE;
|
|
304
|
+
let password = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
|
|
305
|
+
let connectionPriority = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
|
|
306
|
+
let ipAddress = arguments.length > 5 ? arguments[5] : undefined;
|
|
307
|
+
let subnetMask = arguments.length > 6 ? arguments[6] : undefined;
|
|
308
|
+
let defaultGateway = arguments.length > 7 ? arguments[7] : undefined;
|
|
309
|
+
return ThetaClientReactNative.setAccessPointStatically(ssid, ssidStealth, authMode, password, connectionPriority, ipAddress, subnetMask, defaultGateway);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Deletes access point information used in client mode.
|
|
314
|
+
*
|
|
315
|
+
* @function deleteAccessPoint
|
|
316
|
+
* @param {string} ssid SSID of the access point to delete.
|
|
317
|
+
* @return promise of boolean result
|
|
318
|
+
*/
|
|
319
|
+
export function deleteAccessPoint(ssid) {
|
|
320
|
+
return ThetaClientReactNative.deleteAccessPoint(ssid);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Acquires the shooting properties set by the camera._setMySetting command.
|
|
325
|
+
* Just for Theta V and later.
|
|
326
|
+
*
|
|
327
|
+
* @function getMySetting
|
|
328
|
+
* @param captureMode The target shooting mode
|
|
329
|
+
* @returns Options of my setting
|
|
330
|
+
*/
|
|
331
|
+
export function getMySetting(captureMode) {
|
|
332
|
+
return ThetaClientReactNative.getMySetting(captureMode);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Acquires the shooting properties set by the camera._setMySetting command.
|
|
337
|
+
* Just for Theta S and SC.
|
|
338
|
+
*
|
|
339
|
+
* @function getMySetting
|
|
340
|
+
* @param optionNames List of option names to acquire
|
|
341
|
+
* @returns Options of my setting
|
|
342
|
+
*/
|
|
343
|
+
export function getMySettingFromOldModel(optionNames) {
|
|
344
|
+
return ThetaClientReactNative.getMySettingFromOldModel(optionNames);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Registers shooting conditions in My Settings
|
|
349
|
+
* @function setMySetting
|
|
350
|
+
* @param captureMode The target shooting mode. RICOH THETA S and SC do not support My Settings in video capture mode.
|
|
351
|
+
* @param options registered to My Settings
|
|
352
|
+
* @returns Promise of boolean result, always true
|
|
353
|
+
*/
|
|
354
|
+
export function setMySetting(captureMode, options) {
|
|
355
|
+
return ThetaClientReactNative.setMySetting(captureMode, options);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Delete shooting conditions in My Settings. Supported just by Theta X and Z1.
|
|
360
|
+
* @param captureMode The target shooting mode
|
|
361
|
+
* @returns Promise of boolean result, always true
|
|
362
|
+
*/
|
|
363
|
+
export function deleteMySetting(captureMode) {
|
|
364
|
+
return ThetaClientReactNative.deleteMySetting(captureMode);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Acquires a list of installed plugins
|
|
369
|
+
* @function listPlugins
|
|
370
|
+
* @return A list of the plugins installed in Theta.
|
|
371
|
+
*/
|
|
372
|
+
export function listPlugins() {
|
|
373
|
+
return ThetaClientReactNative.listPlugins();
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Sets the installed plugin for boot. Supported just by Theta V.
|
|
378
|
+
* @function setPlugin
|
|
379
|
+
* @param packageName Package name of the target plugin.
|
|
380
|
+
* @return Promise of boolean result, always true.
|
|
381
|
+
*/
|
|
382
|
+
export function setPlugin(packageName) {
|
|
383
|
+
return ThetaClientReactNative.setPlugin(packageName);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Start the plugin specified by the [packageName].
|
|
388
|
+
* @function startPlugin
|
|
389
|
+
* @param packageName Package name of the target plugin.
|
|
390
|
+
* @return Promise of boolean result, always true.
|
|
391
|
+
*/
|
|
392
|
+
export function startPlugin(packageName) {
|
|
393
|
+
return ThetaClientReactNative.startPlugin(packageName);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Stop the running plugin.
|
|
398
|
+
* @function stopPlugin
|
|
399
|
+
* @return Promise of boolean result, always true.
|
|
400
|
+
*/
|
|
401
|
+
export function stopPlugin() {
|
|
402
|
+
return ThetaClientReactNative.stopPlugin();
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Acquires the license for the installed plugin.
|
|
407
|
+
* @function getPluginLicense
|
|
408
|
+
* @param packageName Package name of the target plugin.
|
|
409
|
+
* @return Promise of string result, HTML string of the license.
|
|
410
|
+
*/
|
|
411
|
+
export function getPluginLicense(packageName) {
|
|
412
|
+
return ThetaClientReactNative.getPluginLicense(packageName);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Return the plugin orders. Supported just by Theta X and Z1.
|
|
417
|
+
* @function getPluginOrders
|
|
418
|
+
* @return Promise of string[] result, list of package names of plugins.
|
|
419
|
+
*/
|
|
420
|
+
export function getPluginOrders() {
|
|
421
|
+
return ThetaClientReactNative.getPluginOrders();
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Sets the plugin orders. Supported just by Theta X and Z1.
|
|
426
|
+
* @function setPluginOrders
|
|
427
|
+
* @param plugins list of package names of plugins.
|
|
428
|
+
* For Z1, list size must be three. No restrictions for the size for X.
|
|
429
|
+
* When not specifying, set an empty string.
|
|
430
|
+
* If an empty string is placed mid-way, it will be moved to the front.
|
|
431
|
+
* Specifying zero package name will result in an error
|
|
432
|
+
* @return Promise of boolean result, always true.
|
|
433
|
+
*/
|
|
434
|
+
export function setPluginOrders(plugins) {
|
|
435
|
+
return ThetaClientReactNative.setPluginOrders(plugins);
|
|
436
|
+
}
|
|
437
|
+
//# sourceMappingURL=theta-repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AuthModeEnum","NativeModules","PhotoCaptureBuilder","VideoCaptureBuilder","ThetaClientReactNative","initialize","endPoint","reset","getPhotoCaptureBuilder","getVideoCaptureBuilder","getLivePreview","stopLivePreview","restoreSettings","stopSelfTimer","convertVideoFormats","fileUrl","toLowResolution","applyTopBottomCorrection","cancelVideoConvert","finishWlan","setBluetoothDevice","uuid","getThetaInfo","getThetaState","listFiles","fileTypeEnum","startPosition","arguments","length","undefined","entryCount","deleteFiles","fileUrls","deleteAllFiles","deleteAllImageFiles","deleteAllVideoFiles","getOptions","optionNames","setOptions","options","getMetadata","listAccessPoints","setAccessPointDynamically","ssid","ssidStealth","authMode","NONE","password","connectionPriority","setAccessPointStatically","ipAddress","subnetMask","defaultGateway","deleteAccessPoint","getMySetting","captureMode","getMySettingFromOldModel","setMySetting","deleteMySetting","listPlugins","setPlugin","packageName","startPlugin","stopPlugin","getPluginLicense","getPluginOrders","setPluginOrders","plugins"],"sourceRoot":"../../../src","sources":["theta-repository/theta-repository.ts"],"mappings":"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ACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACC,WAAmB,EAAoB;EAC/D,OAAOzD,sBAAsB,CAACwD,SAAS,CAACC,WAAW,CAAC;AACtD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,WAAWA,CAACD,WAAmB,EAAoB;EACjE,OAAOzD,sBAAsB,CAAC0D,WAAW,CAACD,WAAW,CAAC;AACxD;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASE,UAAUA,CAAA,EAAqB;EAC7C,OAAO3D,sBAAsB,CAAC2D,UAAU,EAAE;AAC5C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAACH,WAAmB,EAAmB;EACrE,OAAOzD,sBAAsB,CAAC4D,gBAAgB,CAACH,WAAW,CAAC;AAC7D;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASI,eAAeA,CAAA,EAAsB;EACnD,OAAO7D,sBAAsB,CAAC6D,eAAe,EAAE;AACjD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACC,OAAiB,EAAoB;EACnE,OAAO/D,sBAAsB,CAAC8D,eAAe,CAACC,OAAO,CAAC;AACxD"}
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
};
|
|
10
|
+
|
|
11
|
+
/** type definition of ChargingStateEnum */
|
|
12
|
+
|
|
13
|
+
/** Capture Status constants */
|
|
14
|
+
export const CaptureStatusEnum = {
|
|
15
|
+
/** Performing continuously shoot */
|
|
16
|
+
SHOOTING: 'SHOOTING',
|
|
17
|
+
/** In standby */
|
|
18
|
+
IDLE: 'IDLE',
|
|
19
|
+
/** Self-timer is operating */
|
|
20
|
+
SELF_TIMER_COUNTDOWN: 'SELF_TIMER_COUNTDOWN',
|
|
21
|
+
/** Performing multi bracket shooting */
|
|
22
|
+
BRACKET_SHOOTING: 'BRACKET_SHOOTING',
|
|
23
|
+
/** Converting post file... */
|
|
24
|
+
CONVERTING: 'CONVERTING',
|
|
25
|
+
/** Performing timeShift shooting */
|
|
26
|
+
TIME_SHIFT_SHOOTING: 'TIME_SHIFT_SHOOTING',
|
|
27
|
+
/** Performing continuous shooting */
|
|
28
|
+
CONTINUOUS_SHOOTING: 'CONTINUOUS_SHOOTING',
|
|
29
|
+
/** Waiting for retrospective video... */
|
|
30
|
+
RETROSPECTIVE_IMAGE_RECORDING: 'RETROSPECTIVE_IMAGE_RECORDING'
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** type definition of CaptureStatusEnum */
|
|
34
|
+
|
|
35
|
+
/** Shooting function status constants */
|
|
36
|
+
export const ShootingFunctionEnum = {
|
|
37
|
+
/** normal */
|
|
38
|
+
NORMAL: 'NORMAL',
|
|
39
|
+
/** selfTimer */
|
|
40
|
+
SELF_TIMER: 'SELF_TIMER',
|
|
41
|
+
/** mySetting */
|
|
42
|
+
MY_SETTING: 'MY_SETTING'
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** type definition of ShootingFunctionEnum */
|
|
46
|
+
|
|
47
|
+
/** Microphone option constants */
|
|
48
|
+
export const MicrophoneOptionEnum = {
|
|
49
|
+
/** auto */
|
|
50
|
+
AUTO: 'AUTO',
|
|
51
|
+
/** built-in microphone */
|
|
52
|
+
INTERNAL: 'INTERNAL',
|
|
53
|
+
/** external microphone */
|
|
54
|
+
EXTERNAL: 'EXTERNAL'
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** type definition of MicrophoneOptionEnum */
|
|
58
|
+
|
|
59
|
+
/** Camera error constants */
|
|
60
|
+
export const CameraErrorEnum = {
|
|
61
|
+
/** Insufficient memory */
|
|
62
|
+
NO_MEMORY: 'NO_MEMORY',
|
|
63
|
+
/** Maximum file number exceeded */
|
|
64
|
+
FILE_NUMBER_OVER: 'FILE_NUMBER_OVER',
|
|
65
|
+
/** Camera clock not set */
|
|
66
|
+
NO_DATA_SETTING: 'NO_DATE_SETTING',
|
|
67
|
+
/** Includes when the card is removed */
|
|
68
|
+
READ_ERROR: 'READ_ERROR',
|
|
69
|
+
/** Unsupported media (SDHC, etc.) */
|
|
70
|
+
NOT_SUPPORTED_MEDIA_TYPE: 'NOT_SUPPORTED_MEDIA_TYPE',
|
|
71
|
+
/** FAT32, etc. */
|
|
72
|
+
NOT_SUPPORTED_FILE_SYSTEM: 'NOT_SUPPORTED_FILE_SYSTEM',
|
|
73
|
+
/** Error warning while mounting */
|
|
74
|
+
MEDIA_NOT_READY: 'MEDIA_NOT_READY',
|
|
75
|
+
/** Battery level warning (firmware update) */
|
|
76
|
+
NOT_ENOUGH_BATTERY: 'NOT_ENOUGH_BATTERY',
|
|
77
|
+
/** Firmware file mismatch warning */
|
|
78
|
+
INVALID_FILE: 'INVALID_FILE',
|
|
79
|
+
/** Plugin start warning (IoT technical standards compliance) */
|
|
80
|
+
PLUGIN_BOOT_ERROR: 'PLUGIN_BOOT_ERROR',
|
|
81
|
+
/**
|
|
82
|
+
* When performing continuous shooting by operating the camera while executing <Delete object>,
|
|
83
|
+
* <Transfer firmware file>, <Install plugin> or <Uninstall plugin> with the WebAPI or MTP.
|
|
84
|
+
*/
|
|
85
|
+
IN_PROGRESS_ERROR: 'IN_PROGRESS_ERROR',
|
|
86
|
+
/** Battery inserted + WLAN ON + Video mode + 4K 60fps / 5.7K 10fps / 5.7K 15fps / 5.7K 30fps / 8K 10fps */
|
|
87
|
+
CANNOT_RECORDING: 'CANNOT_RECORDING',
|
|
88
|
+
/** Battery inserted AND Specified battery level or lower + WLAN ON + Video mode + 4K 30fps */
|
|
89
|
+
CANNOT_RECORD_LOWBAT: 'CANNOT_RECORD_LOWBAT',
|
|
90
|
+
/** Shooting hardware failure */
|
|
91
|
+
CAPTURE_HW_FAILED: 'CAPTURE_HW_FAILED',
|
|
92
|
+
/** Software error */
|
|
93
|
+
CAPTURE_SW_FAILED: 'CAPTURE_SW_FAILED',
|
|
94
|
+
/** Internal memory access error */
|
|
95
|
+
INTERNAL_MEM_ACCESS_FAIL: 'INTERNAL_MEM_ACCESS_FAIL',
|
|
96
|
+
/** Undefined error */
|
|
97
|
+
UNEXPECTED_ERROR: 'UNEXPECTED_ERROR',
|
|
98
|
+
/** Charging error */
|
|
99
|
+
BATTERY_CHARGE_FAIL: 'BATTERY_CHARGE_FAIL',
|
|
100
|
+
/** (Board) temperature warning */
|
|
101
|
+
HIGH_TEMPERATURE_WARNING: 'HIGH_TEMPERATURE_WARNING',
|
|
102
|
+
/** (Board) temperature error */
|
|
103
|
+
HIGH_TEMPERATURE: 'HIGH_TEMPERATURE',
|
|
104
|
+
/** Battery temperature error */
|
|
105
|
+
BATTERY_HIGH_TEMPERATURE: 'BATTERY_HIGH_TEMPERATURE',
|
|
106
|
+
/** Electronic compass error */
|
|
107
|
+
COMPASS_CALIBRATION: 'COMPASS_CALIBRATION'
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
/** type definition of CameraErrorEnum */
|
|
111
|
+
|
|
112
|
+
/** Mutable values representing Theta status. */
|
|
113
|
+
//# sourceMappingURL=theta-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ChargingStateEnum","CHARGING","COMPLETED","NOT_CHARGING","CaptureStatusEnum","SHOOTING","IDLE","SELF_TIMER_COUNTDOWN","BRACKET_SHOOTING","CONVERTING","TIME_SHIFT_SHOOTING","CONTINUOUS_SHOOTING","RETROSPECTIVE_IMAGE_RECORDING","ShootingFunctionEnum","NORMAL","SELF_TIMER","MY_SETTING","MicrophoneOptionEnum","AUTO","INTERNAL","EXTERNAL","CameraErrorEnum","NO_MEMORY","FILE_NUMBER_OVER","NO_DATA_SETTING","READ_ERROR","NOT_SUPPORTED_MEDIA_TYPE","NOT_SUPPORTED_FILE_SYSTEM","MEDIA_NOT_READY","NOT_ENOUGH_BATTERY","INVALID_FILE","PLUGIN_BOOT_ERROR","IN_PROGRESS_ERROR","CANNOT_RECORDING","CANNOT_RECORD_LOWBAT","CAPTURE_HW_FAILED","CAPTURE_SW_FAILED","INTERNAL_MEM_ACCESS_FAIL","UNEXPECTED_ERROR","BATTERY_CHARGE_FAIL","HIGH_TEMPERATURE_WARNING","HIGH_TEMPERATURE","BATTERY_HIGH_TEMPERATURE","COMPASS_CALIBRATION"],"sourceRoot":"../../../src","sources":["theta-repository/theta-state.ts"],"mappings":"AAAA;AACA,OAAO,MAAMA,iBAAiB,GAAG;EAC/B;EACAC,QAAQ,EAAE,UAAU;EACpB;EACAC,SAAS,EAAE,WAAW;EACtB;EACAC,YAAY,EAAE;AAChB,CAAU;;AAEV;;AAIA;AACA,OAAO,MAAMC,iBAAiB,GAAG;EAC/B;EACAC,QAAQ,EAAE,UAAU;EACpB;EACAC,IAAI,EAAE,MAAM;EACZ;EACAC,oBAAoB,EAAE,sBAAsB;EAC5C;EACAC,gBAAgB,EAAE,kBAAkB;EACpC;EACAC,UAAU,EAAE,YAAY;EACxB;EACAC,mBAAmB,EAAE,qBAAqB;EAC1C;EACAC,mBAAmB,EAAE,qBAAqB;EAC1C;EACAC,6BAA6B,EAAE;AACjC,CAAU;;AAEV;;AAIA;AACA,OAAO,MAAMC,oBAAoB,GAAG;EAClC;EACAC,MAAM,EAAE,QAAQ;EAChB;EACAC,UAAU,EAAE,YAAY;EACxB;EACAC,UAAU,EAAE;AACd,CAAU;;AAEV;;AAIA;AACA,OAAO,MAAMC,oBAAoB,GAAG;EAClC;EACAC,IAAI,EAAE,MAAM;EACZ;EACAC,QAAQ,EAAE,UAAU;EACpB;EACAC,QAAQ,EAAE;AACZ,CAAU;;AAEV;;AAIA;AACA,OAAO,MAAMC,eAAe,GAAG;EAC7B;EACAC,SAAS,EAAE,WAAW;EACtB;EACAC,gBAAgB,EAAE,kBAAkB;EACpC;EACAC,eAAe,EAAE,iBAAiB;EAClC;EACAC,UAAU,EAAE,YAAY;EACxB;EACAC,wBAAwB,EAAE,0BAA0B;EACpD;EACAC,yBAAyB,EAAE,2BAA2B;EACtD;EACAC,eAAe,EAAE,iBAAiB;EAClC;EACAC,kBAAkB,EAAE,oBAAoB;EACxC;EACAC,YAAY,EAAE,cAAc;EAC5B;EACAC,iBAAiB,EAAE,mBAAmB;EACtC;AACF;AACA;AACA;EACEC,iBAAiB,EAAE,mBAAmB;EACtC;EACAC,gBAAgB,EAAE,kBAAkB;EACpC;EACAC,oBAAoB,EAAE,sBAAsB;EAC5C;EACAC,iBAAiB,EAAE,mBAAmB;EACtC;EACAC,iBAAiB,EAAE,mBAAmB;EACtC;EACAC,wBAAwB,EAAE,0BAA0B;EACpD;EACAC,gBAAgB,EAAE,kBAAkB;EACpC;EACAC,mBAAmB,EAAE,qBAAqB;EAC1C;EACAC,wBAAwB,EAAE,0BAA0B;EACpD;EACAC,gBAAgB,EAAE,kBAAkB;EACpC;EACAC,wBAAwB,EAAE,0BAA0B;EACpD;EACAC,mBAAmB,EAAE;AACvB,CAAU;;AAEV;;AAIA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { ApertureEnum, ExposureCompensationEnum, ExposureDelayEnum, ExposureProgramEnum, GpsInfo, GpsTagRecordingEnum, IsoAutoHighLimitEnum, IsoEnum, Options, WhiteBalanceEnum } from 'src/theta-repository/options';
|
|
2
|
+
/**
|
|
3
|
+
* Capture Builder class
|
|
4
|
+
*/
|
|
5
|
+
export declare abstract class CaptureBuilder<T extends CaptureBuilder<T>> {
|
|
6
|
+
/** capture options */
|
|
7
|
+
options: Options;
|
|
8
|
+
/** construct capture builder instance */
|
|
9
|
+
constructor();
|
|
10
|
+
/**
|
|
11
|
+
* Set aperture value.
|
|
12
|
+
* @param {ApertureEnum} aperture aperture value to set
|
|
13
|
+
* @return CaptureBuilder
|
|
14
|
+
*/
|
|
15
|
+
setAperture(aperture: ApertureEnum): T;
|
|
16
|
+
/**
|
|
17
|
+
* Set color temperature of the camera (Kelvin).
|
|
18
|
+
* @param {number} kelvin Color temperature to set
|
|
19
|
+
* @return CaptureBuilder
|
|
20
|
+
*/
|
|
21
|
+
setColorTemperature(kelvin: number): T;
|
|
22
|
+
/**
|
|
23
|
+
* Set exposure compensation (EV).
|
|
24
|
+
* @param {ExposureCompensationEnum} value Exposure compensation to set
|
|
25
|
+
* @return CaptureBuilder
|
|
26
|
+
*/
|
|
27
|
+
setExposureCompensation(value: ExposureCompensationEnum): T;
|
|
28
|
+
/**
|
|
29
|
+
* Set operating time (sec.) of the self-timer.
|
|
30
|
+
* @param {ExposureDelayEnum} delay Operating time to set
|
|
31
|
+
* @return CaptureBuilder
|
|
32
|
+
*/
|
|
33
|
+
setExposureDelay(delay: ExposureDelayEnum): T;
|
|
34
|
+
/**
|
|
35
|
+
* Set exposure program. The exposure settings that take priority can be selected.
|
|
36
|
+
* @param {ExposureProgramEnum} program Exposure program to set
|
|
37
|
+
* @return CaptureBuilder
|
|
38
|
+
*/
|
|
39
|
+
setExposureProgram(program: ExposureProgramEnum): T;
|
|
40
|
+
/**
|
|
41
|
+
* Set GPS information.
|
|
42
|
+
* @param {GpsInfo} gpsInfo GPS information to set
|
|
43
|
+
* @return CaptureBuilder
|
|
44
|
+
*/
|
|
45
|
+
setGpsInfo(gpsInfo: GpsInfo): T;
|
|
46
|
+
/**
|
|
47
|
+
* Set turns position information assigning ON/OFF.
|
|
48
|
+
* @param {GpsTagRecordingEnum} value Turns position information assigning ON/OFF to set
|
|
49
|
+
* @return CaptureBuilder
|
|
50
|
+
*/
|
|
51
|
+
setGpsTagRecording(value: GpsTagRecordingEnum): T;
|
|
52
|
+
/**
|
|
53
|
+
* Set ISO sensitivity.
|
|
54
|
+
* @param {IsoEnum} iso ISO sensitivity to set
|
|
55
|
+
* @return CaptureBuilder
|
|
56
|
+
*/
|
|
57
|
+
setIso(iso: IsoEnum): T;
|
|
58
|
+
/**
|
|
59
|
+
* Set ISO sensitivity upper limit when ISO sensitivity is set to automatic.
|
|
60
|
+
* @param {IsoAutoHighLimitEnum} iso ISO sensitivity upper limit to set
|
|
61
|
+
* @return CaptureBuilder
|
|
62
|
+
*/
|
|
63
|
+
setIsoAutoHighLimit(iso: IsoAutoHighLimitEnum): T;
|
|
64
|
+
/**
|
|
65
|
+
* Set white balance.
|
|
66
|
+
* @param {WhiteBalanceEnum} whiteBalance White balance to set
|
|
67
|
+
* @return CaptureBuilder
|
|
68
|
+
*/
|
|
69
|
+
setWhiteBalance(whiteBalance: WhiteBalanceEnum): T;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=capture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../../../src/capture/capture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,wBAAwB,EACxB,iBAAiB,EACjB,mBAAmB,EACnB,OAAO,EACP,mBAAmB,EACnB,oBAAoB,EACpB,OAAO,EACP,OAAO,EACP,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AAEtC;;GAEG;AACH,8BAAsB,cAAc,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,CAAC;IAC9D,sBAAsB;IACtB,OAAO,EAAE,OAAO,CAAC;IAEjB,yCAAyC;;IAKzC;;;;OAIG;IACH,WAAW,CAAC,QAAQ,EAAE,YAAY,GAAG,CAAC;IAKtC;;;;OAIG;IACH,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC;IAKtC;;;;OAIG;IACH,uBAAuB,CAAC,KAAK,EAAE,wBAAwB,GAAG,CAAC;IAK3D;;;;OAIG;IACH,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,GAAG,CAAC;IAK7C;;;;OAIG;IACH,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG,CAAC;IAInD;;;;OAIG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,CAAC;IAK/B;;;;OAIG;IACH,kBAAkB,CAAC,KAAK,EAAE,mBAAmB,GAAG,CAAC;IAKjD;;;;OAIG;IACH,MAAM,CAAC,GAAG,EAAE,OAAO,GAAG,CAAC;IAKvB;;;;OAIG;IACH,mBAAmB,CAAC,GAAG,EAAE,oBAAoB,GAAG,CAAC;IAKjD;;;;OAIG;IACH,eAAe,CAAC,YAAY,EAAE,gBAAgB,GAAG,CAAC;CAInD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/capture/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|