theta-client-react-native 1.0.2 → 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 +528 -43
- 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
package/src/index.tsx
CHANGED
|
@@ -17,1249 +17,9 @@ const ThetaClientReactNative = NativeModules.ThetaClientReactNative
|
|
|
17
17
|
}
|
|
18
18
|
);
|
|
19
19
|
|
|
20
|
-
/** Static attributes of Theta. */
|
|
21
|
-
export type ThetaInfo = {
|
|
22
|
-
/** Theta model name */
|
|
23
|
-
model: string;
|
|
24
|
-
/** Theta serial number */
|
|
25
|
-
serialNumber: string;
|
|
26
|
-
/** Theta firmware version */
|
|
27
|
-
firmwareVersion: string;
|
|
28
|
-
/** true if Theta has GPS. */
|
|
29
|
-
hasGps: boolean;
|
|
30
|
-
/** true if Theta has Gyroscope */
|
|
31
|
-
hasGyro: boolean;
|
|
32
|
-
/** Number of seconds since Theta boot */
|
|
33
|
-
uptime: number;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/** Battery charging state constants */
|
|
37
|
-
export const ChargingStateEnum = {
|
|
38
|
-
/** Charging */
|
|
39
|
-
CHARGING: 'CHARGING',
|
|
40
|
-
/** Charging completed */
|
|
41
|
-
COMPLETED: 'COMPLETED',
|
|
42
|
-
/** Not charging */
|
|
43
|
-
NOT_CHARGING: 'NOT_CHARGING',
|
|
44
|
-
} as const;
|
|
45
|
-
|
|
46
|
-
/** type definition of ChargingStateEnum */
|
|
47
|
-
export type ChargingStateEnum =
|
|
48
|
-
typeof ChargingStateEnum[keyof typeof ChargingStateEnum];
|
|
49
|
-
|
|
50
|
-
/** Mutable values representing Theta status. */
|
|
51
|
-
export type ThetaState = {
|
|
52
|
-
/** Fingerprint (unique identifier) of the current camera state */
|
|
53
|
-
fingerprint: string;
|
|
54
|
-
/** Battery level between 0.0 and 1.0 */
|
|
55
|
-
batteryLevel: number;
|
|
56
|
-
/** Charging state */
|
|
57
|
-
chargingState: ChargingStateEnum;
|
|
58
|
-
/** true if record to SD card */
|
|
59
|
-
isSdCard: boolean;
|
|
60
|
-
/** Recorded time of movie (seconds) */
|
|
61
|
-
recordedTime: number;
|
|
62
|
-
/** Recordable time of movie (seconds) */
|
|
63
|
-
recordableTime: number;
|
|
64
|
-
/** URL of the last saved file */
|
|
65
|
-
latestFileUrl: string;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
/** File information in Theta. */
|
|
69
|
-
export type FileInfo = {
|
|
70
|
-
/** File name. */
|
|
71
|
-
name: string;
|
|
72
|
-
/** File size in bytes. */
|
|
73
|
-
size: number;
|
|
74
|
-
/** File creation time in the format "YYYY:MM:DD HH:MM:SS". */
|
|
75
|
-
dateTime: string;
|
|
76
|
-
/** You can get a thumbnail image using HTTP GET to [thumbnailUrl]. */
|
|
77
|
-
thumbnailUrl: string;
|
|
78
|
-
/** fileUrl You can get a file using HTTP GET to [fileUrl]. */
|
|
79
|
-
fileUrl: string;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
/** File type in Theta. */
|
|
83
|
-
export const FileTypeEnum = {
|
|
84
|
-
/** still image files. */
|
|
85
|
-
IMAGE: 'IMAGE',
|
|
86
|
-
/** video files. */
|
|
87
|
-
VIDEO: 'VIDEO',
|
|
88
|
-
/** all files. */
|
|
89
|
-
ALL: 'ALL',
|
|
90
|
-
} as const;
|
|
91
|
-
|
|
92
|
-
/** type definition of FileTypeEnum */
|
|
93
|
-
export type FileTypeEnum = typeof FileTypeEnum[keyof typeof FileTypeEnum];
|
|
94
|
-
|
|
95
|
-
/** Aperture value. */
|
|
96
|
-
export const ApertureEnum = {
|
|
97
|
-
/** AUTO(0) */
|
|
98
|
-
APERTURE_AUTO: 'APERTURE_AUTO',
|
|
99
|
-
/** 2.0F RICOH THETA V or prior */
|
|
100
|
-
APERTURE_2_0: 'APERTURE_2_0',
|
|
101
|
-
/** 2.1F RICOH THETA Z1 and the exposure program (exposureProgram) is set to Manual or Aperture Priority */
|
|
102
|
-
APERTURE_2_1: 'APERTURE_2_1',
|
|
103
|
-
/** 2.4F RICOH THETA X or later */
|
|
104
|
-
APERTURE_2_4: 'APERTURE_2_4',
|
|
105
|
-
/** 3.5F RICOH THETA Z1 and the exposure program (exposureProgram) is set to Manual or Aperture Priority */
|
|
106
|
-
APERTURE_3_5: 'APERTURE_3_5',
|
|
107
|
-
/** 5.6F RICOH THETA Z1 and the exposure program (exposureProgram) is set to Manual or Aperture Priority */
|
|
108
|
-
APERTURE_5_6: 'APERTURE_5_6',
|
|
109
|
-
} as const;
|
|
110
|
-
|
|
111
|
-
/** type definition of ApertureEnum */
|
|
112
|
-
export type ApertureEnum = typeof ApertureEnum[keyof typeof ApertureEnum];
|
|
113
|
-
|
|
114
|
-
/** Shooting mode. */
|
|
115
|
-
export const CaptureModeEnum = {
|
|
116
|
-
/** Still image capture mode */
|
|
117
|
-
IMAGE: 'IMAGE',
|
|
118
|
-
/** Video capture mode */
|
|
119
|
-
VIDEO: 'VIDEO',
|
|
120
|
-
} as const;
|
|
121
|
-
|
|
122
|
-
/** type definition of CaptureModeEnum */
|
|
123
|
-
export type CaptureModeEnum =
|
|
124
|
-
typeof CaptureModeEnum[keyof typeof CaptureModeEnum];
|
|
125
|
-
|
|
126
|
-
/** Exposure compensation (EV). */
|
|
127
|
-
export const ExposureCompensationEnum = {
|
|
128
|
-
/** -2.0 */
|
|
129
|
-
M_2_0: 'M2_0',
|
|
130
|
-
/** -1.7 */
|
|
131
|
-
M_1_7: 'M1_7',
|
|
132
|
-
/** -1.3 */
|
|
133
|
-
M_1_3: 'M1_3',
|
|
134
|
-
/** -1.0 */
|
|
135
|
-
M_1_0: 'M1_0',
|
|
136
|
-
/** -0.7 */
|
|
137
|
-
M_0_7: 'M0_7',
|
|
138
|
-
/** -0.3 */
|
|
139
|
-
M_0_3: 'M0_3',
|
|
140
|
-
/** 0 */
|
|
141
|
-
ZERO: 'ZERO',
|
|
142
|
-
/** 0.3 */
|
|
143
|
-
P_0_3: 'P0_3',
|
|
144
|
-
/** 0.7 */
|
|
145
|
-
P_0_7: 'P0_7',
|
|
146
|
-
/** 1.0 */
|
|
147
|
-
P_1_0: 'P1_0',
|
|
148
|
-
/** 1.3 */
|
|
149
|
-
P_1_3: 'P1_3',
|
|
150
|
-
/** 1.7 */
|
|
151
|
-
P_1_7: 'P1_7',
|
|
152
|
-
/** 2.0 */
|
|
153
|
-
P_2_0: 'P2_0',
|
|
154
|
-
} as const;
|
|
155
|
-
|
|
156
|
-
/** type definition of ExposureCompensationEnum */
|
|
157
|
-
export type ExposureCompensationEnum =
|
|
158
|
-
typeof ExposureCompensationEnum[keyof typeof ExposureCompensationEnum];
|
|
159
|
-
|
|
160
|
-
/** Operating time (sec.) of the self-timer. */
|
|
161
|
-
export const ExposureDelayEnum = {
|
|
162
|
-
/** Disable self-timer. */
|
|
163
|
-
DELAY_OFF: 'DELAY_OFF',
|
|
164
|
-
/** a second */
|
|
165
|
-
DELAY_1: 'DELAY_1',
|
|
166
|
-
/** 2 seconds */
|
|
167
|
-
DELAY_2: 'DELAY_2',
|
|
168
|
-
/** 3 seconds */
|
|
169
|
-
DELAY_3: 'DELAY_3',
|
|
170
|
-
/** 4 seconds */
|
|
171
|
-
DELAY_4: 'DELAY_4',
|
|
172
|
-
/** 5 seconds */
|
|
173
|
-
DELAY_5: 'DELAY_5',
|
|
174
|
-
/** 6 seconds */
|
|
175
|
-
DELAY_6: 'DELAY_6',
|
|
176
|
-
/** 7 seconds */
|
|
177
|
-
DELAY_7: 'DELAY_7',
|
|
178
|
-
/** 8 seconds */
|
|
179
|
-
DELAY_8: 'DELAY_8',
|
|
180
|
-
/** 9 seconds */
|
|
181
|
-
DELAY_9: 'DELAY_9',
|
|
182
|
-
/** 10 seconds */
|
|
183
|
-
DELAY_10: 'DELAY_10',
|
|
184
|
-
} as const;
|
|
185
|
-
|
|
186
|
-
/** type definition of ExposureDelayEnum */
|
|
187
|
-
export type ExposureDelayEnum =
|
|
188
|
-
typeof ExposureDelayEnum[keyof typeof ExposureDelayEnum];
|
|
189
|
-
|
|
190
|
-
/** Exposure program. The exposure settings that take priority can be selected. */
|
|
191
|
-
export const ExposureProgramEnum = {
|
|
192
|
-
/** Manual program */
|
|
193
|
-
MANUAL: 'MANUAL',
|
|
194
|
-
/** Normal program */
|
|
195
|
-
NORMAL_PROGRAM: 'NORMAL_PROGRAM',
|
|
196
|
-
/** Aperture priority program */
|
|
197
|
-
APERTURE_PRIORITY: 'APERTURE_PRIORITY',
|
|
198
|
-
/** Shutter priority program */
|
|
199
|
-
SHUTTER_PRIORITY: 'SHUTTER_PRIORITY',
|
|
200
|
-
/** ISO priority program */
|
|
201
|
-
ISO_PRIORITY: 'ISO_PRIORITY',
|
|
202
|
-
} as const;
|
|
203
|
-
|
|
204
|
-
/** type definition of ExposureProgramEnum */
|
|
205
|
-
export type ExposureProgramEnum =
|
|
206
|
-
typeof ExposureProgramEnum[keyof typeof ExposureProgramEnum];
|
|
207
|
-
|
|
208
|
-
/** file format type in theta */
|
|
209
|
-
export const FileFormatTypeEnum = {
|
|
210
|
-
/** jpeg image */
|
|
211
|
-
JPEG: 'JPEG',
|
|
212
|
-
/** mp4 video */
|
|
213
|
-
MP4: 'MP4',
|
|
214
|
-
/** raw+ image */
|
|
215
|
-
RAW: 'RAW',
|
|
216
|
-
} as const;
|
|
217
|
-
|
|
218
|
-
/** type definition of FileFormatTypeEnum */
|
|
219
|
-
export type FileFormatTypeEnum =
|
|
220
|
-
typeof FileFormatTypeEnum[keyof typeof FileFormatTypeEnum];
|
|
221
|
-
|
|
222
|
-
/** Photo image format */
|
|
223
|
-
export const PhotoFileFormatEnum = {
|
|
224
|
-
/** jpeg 2048 x 1024 */
|
|
225
|
-
IMAGE_2K: 'IMAGE_2K',
|
|
226
|
-
/** jpeg 5376 x 2688 */
|
|
227
|
-
IMAGE_5K: 'IMAGE_5K',
|
|
228
|
-
/** jpeg 6720 x 3360 */
|
|
229
|
-
IMAGE_6_7K: 'IMAGE_6_7K',
|
|
230
|
-
/** row+ 6720 x 3360 */
|
|
231
|
-
RAW_P_6_7K: 'RAW_P_6_7K',
|
|
232
|
-
/** jpeg 5504 x 2752 */
|
|
233
|
-
IMAGE_5_5K: 'IMAGE_5_5K',
|
|
234
|
-
/** jpeg 11008 x 5504 */
|
|
235
|
-
IMAGE_11K: 'IMAGE_11K',
|
|
236
|
-
} as const;
|
|
237
|
-
|
|
238
|
-
/** Video image format */
|
|
239
|
-
export const VideoFileFormatEnum = {
|
|
240
|
-
/** mp4 1280 x 570 */
|
|
241
|
-
VIDEO_HD: 'VIDEO_HD',
|
|
242
|
-
/** mp4 1920 x 1080 */
|
|
243
|
-
VIDEO_FULL_HD: 'VIDEO_FULL_HD',
|
|
244
|
-
/** mp4 1920 x 960 */
|
|
245
|
-
VIDEO_2K: 'VIDEO_2K',
|
|
246
|
-
/** mp4 3840 x 1920 */
|
|
247
|
-
VIDEO_4K: 'VIDEO_4K',
|
|
248
|
-
/** mp4 1920 x 960 30fps */
|
|
249
|
-
VIDEO_2K_30F: 'VIDEO_2K_30F',
|
|
250
|
-
/** mp4 1920 x 960 60fps */
|
|
251
|
-
VIDEO_2K_60F: 'VIDEO_2K_60F',
|
|
252
|
-
/** mp4 3840 x 1920 30fps */
|
|
253
|
-
VIDEO_4K_30F: 'VIDEO_4K_30F',
|
|
254
|
-
/** mp4 3840 x 1920 60fps */
|
|
255
|
-
VIDEO_4K_60F: 'VIDEO_4K_60F',
|
|
256
|
-
/** mp4 5760 x 2880 2fps */
|
|
257
|
-
VIDEO_5_7K_2F: 'VIDEO_5_7K_2F',
|
|
258
|
-
/** mp4 5760 x 2880 5fps */
|
|
259
|
-
VIDEO_5_7K_5F: 'VIDEO_5_7K_5F',
|
|
260
|
-
/** mp4 5760 x 2880 30fps */
|
|
261
|
-
VIDEO_5_7K_30F: 'VIDEO_5_7K_30F',
|
|
262
|
-
/** mp4 7680 x 3840 2fps */
|
|
263
|
-
VIDEO_7K_2F: 'VIDEO_7K_2F',
|
|
264
|
-
/** mp4 7680 x 3840 5fps */
|
|
265
|
-
VIDEO_7K_5F: 'VIDEO_7K_5F',
|
|
266
|
-
/** mp4 7680 x 3840 10fps */
|
|
267
|
-
VIDEO_7K_10F: 'VIDEO_7K_10F',
|
|
268
|
-
} as const;
|
|
269
|
-
|
|
270
|
-
/** type definition of PhotoFileFormatEnum */
|
|
271
|
-
export type PhotoFileFormatEnum =
|
|
272
|
-
typeof PhotoFileFormatEnum[keyof typeof PhotoFileFormatEnum];
|
|
273
|
-
|
|
274
|
-
/** type definition of VideoFileFormatEnum */
|
|
275
|
-
export type VideoFileFormatEnum =
|
|
276
|
-
typeof VideoFileFormatEnum[keyof typeof VideoFileFormatEnum];
|
|
277
|
-
|
|
278
|
-
/** Image processing filter. */
|
|
279
|
-
export const FilterEnum = {
|
|
280
|
-
/** No filter. */
|
|
281
|
-
OFF: 'OFF',
|
|
282
|
-
/** Noise reduction. */
|
|
283
|
-
NOISE_REDUCTION: 'NOISE_REDUCTION',
|
|
284
|
-
/** HDR. */
|
|
285
|
-
HDR: 'HDR',
|
|
286
|
-
} as const;
|
|
287
|
-
|
|
288
|
-
/** type definition of FilterEnum */
|
|
289
|
-
export type FilterEnum = typeof FilterEnum[keyof typeof FilterEnum];
|
|
290
|
-
|
|
291
|
-
/** GPS information */
|
|
292
|
-
export type GpsInfo = {
|
|
293
|
-
/** Latitude (-90.000000 – 90.000000) */
|
|
294
|
-
latitude: number;
|
|
295
|
-
/** Longitude (-180.000000 – 180.000000) */
|
|
296
|
-
longitude: number;
|
|
297
|
-
/** Altitude (meters) */
|
|
298
|
-
altitude: number;
|
|
299
|
-
/** Location information acquisition time */
|
|
300
|
-
dateTimeZone: string;
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
/** Turns position information assigning ON/OFF. */
|
|
304
|
-
export const GpsTagRecordingEnum = {
|
|
305
|
-
/** Position information assigning ON. */
|
|
306
|
-
ON: 'ON',
|
|
307
|
-
/** Position information assigning OFF. */
|
|
308
|
-
OFF: 'OFF',
|
|
309
|
-
} as const;
|
|
310
|
-
|
|
311
|
-
/** type definition of GpsTagRecordingEnum */
|
|
312
|
-
export type GpsTagRecordingEnum =
|
|
313
|
-
typeof GpsTagRecordingEnum[keyof typeof GpsTagRecordingEnum];
|
|
314
|
-
|
|
315
|
-
/** ISO sensitivity. */
|
|
316
|
-
export const IsoEnum = {
|
|
317
|
-
/** AUTO (0) */
|
|
318
|
-
ISO_AUTO: 'ISO_AUTO',
|
|
319
|
-
/** 50 */
|
|
320
|
-
ISO_50: 'ISO_50',
|
|
321
|
-
/** 64 */
|
|
322
|
-
ISO_64: 'ISO_64',
|
|
323
|
-
/** 80 */
|
|
324
|
-
ISO_80: 'ISO_80',
|
|
325
|
-
/** 100 */
|
|
326
|
-
ISO_100: 'ISO_100',
|
|
327
|
-
/** 125 */
|
|
328
|
-
ISO_125: 'ISO_125',
|
|
329
|
-
/** 160 */
|
|
330
|
-
ISO_160: 'ISO_160',
|
|
331
|
-
/** 200 */
|
|
332
|
-
ISO_200: 'ISO_200',
|
|
333
|
-
/** 250 */
|
|
334
|
-
ISO_250: 'ISO_250',
|
|
335
|
-
/** 320 */
|
|
336
|
-
ISO_320: 'ISO_320',
|
|
337
|
-
/** 400 */
|
|
338
|
-
ISO_400: 'ISO_400',
|
|
339
|
-
/** 500 */
|
|
340
|
-
ISO_500: 'ISO_500',
|
|
341
|
-
/** 640 */
|
|
342
|
-
ISO_640: 'ISO_640',
|
|
343
|
-
/** 800 */
|
|
344
|
-
ISO_800: 'ISO_800',
|
|
345
|
-
/** 1000 */
|
|
346
|
-
ISO_1000: 'ISO_1000',
|
|
347
|
-
/** 1250 */
|
|
348
|
-
ISO_1250: 'ISO_1250',
|
|
349
|
-
/** 1600 */
|
|
350
|
-
ISO_1600: 'ISO_1600',
|
|
351
|
-
/** 2000 */
|
|
352
|
-
ISO_2000: 'ISO_2000',
|
|
353
|
-
/** 2500 */
|
|
354
|
-
ISO_2500: 'ISO_2500',
|
|
355
|
-
/** 3200 */
|
|
356
|
-
ISO_3200: 'ISO_3200',
|
|
357
|
-
/** 4000 */
|
|
358
|
-
ISO_4000: 'ISO_4000',
|
|
359
|
-
/** 5000 */
|
|
360
|
-
ISO_5000: 'ISO_5000',
|
|
361
|
-
/** 6400 */
|
|
362
|
-
ISO_6400: 'ISO_6400',
|
|
363
|
-
} as const;
|
|
364
|
-
|
|
365
|
-
/** type definition IsoEnum */
|
|
366
|
-
export type IsoEnum = typeof IsoEnum[keyof typeof IsoEnum];
|
|
367
|
-
|
|
368
|
-
/** ISO sensitivity upper limit when ISO sensitivity is set to automatic. */
|
|
369
|
-
export const IsoAutoHighLimitEnum = {
|
|
370
|
-
/** 100 */
|
|
371
|
-
ISO_100: 'ISO_100',
|
|
372
|
-
/** 125 */
|
|
373
|
-
ISO_125: 'ISO_125',
|
|
374
|
-
/** 160 */
|
|
375
|
-
ISO_160: 'ISO_160',
|
|
376
|
-
/** 200 */
|
|
377
|
-
ISO_200: 'ISO_200',
|
|
378
|
-
/** 250 */
|
|
379
|
-
ISO_250: 'ISO_250',
|
|
380
|
-
/** 320 */
|
|
381
|
-
ISO_320: 'ISO_320',
|
|
382
|
-
/** 400 */
|
|
383
|
-
ISO_400: 'ISO_400',
|
|
384
|
-
/** 500 */
|
|
385
|
-
ISO_500: 'ISO_500',
|
|
386
|
-
/** 640 */
|
|
387
|
-
ISO_640: 'ISO_640',
|
|
388
|
-
/** 800 */
|
|
389
|
-
ISO_800: 'ISO_800',
|
|
390
|
-
/** 1000 */
|
|
391
|
-
ISO_1000: 'ISO_1000',
|
|
392
|
-
/** 1250 */
|
|
393
|
-
ISO_1250: 'ISO_1250',
|
|
394
|
-
/** 1600 */
|
|
395
|
-
ISO_1600: 'ISO_1600',
|
|
396
|
-
/** 2000 */
|
|
397
|
-
ISO_2000: 'ISO_2000',
|
|
398
|
-
/** 2500 */
|
|
399
|
-
ISO_2500: 'ISO_2500',
|
|
400
|
-
/** 3200 */
|
|
401
|
-
ISO_3200: 'ISO_3200',
|
|
402
|
-
/** 4000 */
|
|
403
|
-
ISO_4000: 'ISO_4000',
|
|
404
|
-
/** 5000 */
|
|
405
|
-
ISO_5000: 'ISO_5000',
|
|
406
|
-
/** 6400 */
|
|
407
|
-
ISO_6400: 'ISO_6400',
|
|
408
|
-
} as const;
|
|
409
|
-
|
|
410
|
-
/** type definition of IsoAutoHighLimitEnum */
|
|
411
|
-
export type IsoAutoHighLimitEnum =
|
|
412
|
-
typeof IsoAutoHighLimitEnum[keyof typeof IsoAutoHighLimitEnum];
|
|
413
|
-
|
|
414
|
-
/** language */
|
|
415
|
-
export const LanguageEnum = {
|
|
416
|
-
/** german */
|
|
417
|
-
DE: 'DE',
|
|
418
|
-
/** british english */
|
|
419
|
-
EN_GB: 'EN_GB',
|
|
420
|
-
/** us english */
|
|
421
|
-
EN_US: 'EN_US',
|
|
422
|
-
/** french */
|
|
423
|
-
FR: 'FR',
|
|
424
|
-
/** italian */
|
|
425
|
-
IT: 'IT',
|
|
426
|
-
/** japanese */
|
|
427
|
-
JA: 'JA',
|
|
428
|
-
/** korean */
|
|
429
|
-
KO: 'KO',
|
|
430
|
-
/** chinese */
|
|
431
|
-
ZH_CN: 'ZH_CH',
|
|
432
|
-
/** taiwan chinese */
|
|
433
|
-
ZH_TW: 'ZH_TW',
|
|
434
|
-
} as const;
|
|
435
|
-
|
|
436
|
-
/** type definition of LanguageEnum */
|
|
437
|
-
export type LanguageEnum = typeof LanguageEnum[keyof typeof LanguageEnum];
|
|
438
|
-
|
|
439
|
-
/** Maximum recordable time (in seconds) of the camera */
|
|
440
|
-
export const MaxRecordableTimeEnum = {
|
|
441
|
-
/** 180 seconds for SC2 only. */
|
|
442
|
-
RECORDABLE_TIME_180: 'RECORDABLE_TIME_180',
|
|
443
|
-
/** 300 seconds for other than SC2. */
|
|
444
|
-
RECORDABLE_TIME_300: 'RECORDABLE_TIME_300',
|
|
445
|
-
/** 1500 seconds for other than SC2. */
|
|
446
|
-
RECORDABLE_TIME_1500: 'RECORDABLE_TIME_1500',
|
|
447
|
-
} as const;
|
|
448
|
-
|
|
449
|
-
/** type definition of MaxRecordableTimeEnum */
|
|
450
|
-
export type MaxRecordableTimeEnum =
|
|
451
|
-
typeof MaxRecordableTimeEnum[keyof typeof MaxRecordableTimeEnum];
|
|
452
|
-
|
|
453
|
-
/** Length of standby time before the camera automatically powers OFF. */
|
|
454
|
-
export const OffDelayEnum = {
|
|
455
|
-
/** Do not turn power off. */
|
|
456
|
-
DISABLE: 'DISABLE',
|
|
457
|
-
/** Power off after 5 minutes.(300sec) */
|
|
458
|
-
OFF_DELAY_5M: 'OFF_DELAY_5M',
|
|
459
|
-
/** Power off after 10 minutes.(600sec) */
|
|
460
|
-
OFF_DELAY_10M: 'OFF_DELAY_10M',
|
|
461
|
-
/** Power off after 15 minutes.(900sec) */
|
|
462
|
-
OFF_DELAY_15M: 'OFF_DELAY_15M',
|
|
463
|
-
/** Power off after 30 minutes.(1,800sec) */
|
|
464
|
-
OFF_DELAY_30M: 'OFF_DELAY_30M',
|
|
465
|
-
} as const;
|
|
466
|
-
|
|
467
|
-
/** type definition of OffDelayEnum */
|
|
468
|
-
export type OffDelayEnum =
|
|
469
|
-
| typeof OffDelayEnum[keyof typeof OffDelayEnum]
|
|
470
|
-
| number;
|
|
471
|
-
|
|
472
|
-
/** Length of standby time before the camera enters the sleep mode. */
|
|
473
|
-
export const SleepDelayEnum = {
|
|
474
|
-
/** Do not turn sleep mode. */
|
|
475
|
-
DISABLE: 'DISABLE',
|
|
476
|
-
/** sleep mode after 3 minutes.(180seconds) */
|
|
477
|
-
SLEEP_DELAY_3M: 'SLEEP_DELAY_3M',
|
|
478
|
-
/** sleep mode after 5 minutes.(300seconds) */
|
|
479
|
-
SLEEP_DELAY_5M: 'SLEEP_DELAY_5M',
|
|
480
|
-
/** sleep mode after 7 minutes.(420seconds) */
|
|
481
|
-
SLEEP_DELAY_7M: 'SLEEP_DELAY_7M',
|
|
482
|
-
/** sleep mode after 10 minutes.(600seconds) */
|
|
483
|
-
SLEEP_DELAY_10M: 'SLEEP_DELAY_10M',
|
|
484
|
-
} as const;
|
|
485
|
-
|
|
486
|
-
/** type definition of SleepDelayEnum */
|
|
487
|
-
export type SleepDelayEnum =
|
|
488
|
-
| typeof SleepDelayEnum[keyof typeof SleepDelayEnum]
|
|
489
|
-
| number;
|
|
490
|
-
|
|
491
|
-
/** White balance. */
|
|
492
|
-
export const WhiteBalanceEnum = {
|
|
493
|
-
/** Automatic */
|
|
494
|
-
AUTO: 'AUTO',
|
|
495
|
-
/** Outdoor */
|
|
496
|
-
DAYLIGHT: 'DAYLIGHT',
|
|
497
|
-
/** Shade */
|
|
498
|
-
SHADE: 'SHADE',
|
|
499
|
-
/** Cloudy */
|
|
500
|
-
CLOUDY_DAYLIGHT: 'CLOUDY_DAYLIGHT',
|
|
501
|
-
/** Incandescent light 1 */
|
|
502
|
-
INCANDESCENT: 'INCANDESCENT',
|
|
503
|
-
/** Incandescent light 2 */
|
|
504
|
-
WARM_WHITE_FLUORESCENT: 'WARM_WHITE_FLUORESCENT',
|
|
505
|
-
/** Fluorescent light 1 (daylight) */
|
|
506
|
-
DAYLIGHT_FLUORESCENT: 'DAYLIGHT_FLUORESCENT',
|
|
507
|
-
/** Fluorescent light 2 (natural white) */
|
|
508
|
-
DAYWHITE_FLUORESCENT: 'DAYWHITE_FLUORESCENT',
|
|
509
|
-
/** Fluorescent light 3 (white) */
|
|
510
|
-
FLUORESCENT: 'FLUORESCENT',
|
|
511
|
-
/** Fluorescent light 4 (light bulb color) */
|
|
512
|
-
BULB_FLUORESCENT: 'BULB_FLUORESCENT',
|
|
513
|
-
/** CT settings (specified by the _colorTemperature option) */
|
|
514
|
-
COLOR_TEMPERATURE: 'COLOR_TEMPERATURE',
|
|
515
|
-
/** Underwater */
|
|
516
|
-
UNDERWATER: 'UNDERWATER',
|
|
517
|
-
} as const;
|
|
518
|
-
|
|
519
|
-
/** type definition of WhiteBalanceEnum */
|
|
520
|
-
export type WhiteBalanceEnum =
|
|
521
|
-
typeof WhiteBalanceEnum[keyof typeof WhiteBalanceEnum];
|
|
522
|
-
|
|
523
|
-
/** Camera setting options name. */
|
|
524
|
-
export const OptionNameEnum = {
|
|
525
|
-
/** aperture */
|
|
526
|
-
Aperture: 'Aperture',
|
|
527
|
-
/** captureMode */
|
|
528
|
-
CaptureMode: 'CaptureMode',
|
|
529
|
-
/** colorTemperature */
|
|
530
|
-
ColorTemperature: 'ColorTemperature',
|
|
531
|
-
/** dateTimeZone */
|
|
532
|
-
DateTimeZone: 'DateTimeZone',
|
|
533
|
-
/** exposureCompensation */
|
|
534
|
-
ExposureCompensation: 'ExposureCompensation',
|
|
535
|
-
/** exposureDelay */
|
|
536
|
-
ExposureDelay: 'ExposureDelay',
|
|
537
|
-
/** exposureProgram */
|
|
538
|
-
ExposureProgram: 'ExposureProgram',
|
|
539
|
-
/** fileFormat */
|
|
540
|
-
FileFormat: 'FileFormat',
|
|
541
|
-
/** filter */
|
|
542
|
-
Filter: 'Filter',
|
|
543
|
-
/** gpsInfo */
|
|
544
|
-
GpsInfo: 'GpsInfo',
|
|
545
|
-
/** isGpsOn */
|
|
546
|
-
IsGpsOn: 'IsGpsOn',
|
|
547
|
-
/** iso */
|
|
548
|
-
Iso: 'Iso',
|
|
549
|
-
/** isoAutoHighLimit */
|
|
550
|
-
IsoAutoHighLimit: 'IsoAutoHighLimit',
|
|
551
|
-
/** language */
|
|
552
|
-
Language: 'Language',
|
|
553
|
-
/** maxRecordableTime */
|
|
554
|
-
MaxRecordableTime: 'MaxRecordableTime',
|
|
555
|
-
/** offDelay */
|
|
556
|
-
OffDelay: 'OffDelay',
|
|
557
|
-
/** sleepDelay */
|
|
558
|
-
SleepDelay: 'SleepDelay',
|
|
559
|
-
/** remainingPictures */
|
|
560
|
-
RemainingPictures: 'RemainingPictures',
|
|
561
|
-
/** remainingVideoSeconds */
|
|
562
|
-
RemainingVideoSeconds: 'RemainingVideoSeconds',
|
|
563
|
-
/** remainingSpace */
|
|
564
|
-
RemainingSpace: 'RemainingSpace',
|
|
565
|
-
/** totalSpace */
|
|
566
|
-
TotalSpace: 'TotalSpace',
|
|
567
|
-
/** shutterVolume */
|
|
568
|
-
ShutterVolume: 'ShutterVolume',
|
|
569
|
-
/** whiteBalance */
|
|
570
|
-
WhiteBalance: 'WhiteBalance',
|
|
571
|
-
} as const;
|
|
572
|
-
|
|
573
|
-
/** type definition of OptionNameEnum */
|
|
574
|
-
export type OptionNameEnum = typeof OptionNameEnum[keyof typeof OptionNameEnum];
|
|
575
|
-
|
|
576
|
-
/** camera setting options */
|
|
577
|
-
export type Options = {
|
|
578
|
-
/** Aperture value. */
|
|
579
|
-
aperture?: ApertureEnum;
|
|
580
|
-
/** Shooting mode. */
|
|
581
|
-
captureMode?: CaptureModeEnum;
|
|
582
|
-
/** Color temperature of the camera (Kelvin). */
|
|
583
|
-
colorTemperature?: number;
|
|
584
|
-
/** Current system time of RICOH THETA. Setting another options will result in an error. */
|
|
585
|
-
dateTimeZone?: string;
|
|
586
|
-
/** Exposure compensation (EV). */
|
|
587
|
-
exposureCompensation?: ExposureCompensationEnum;
|
|
588
|
-
/** Operating time (sec.) of the self-timer. */
|
|
589
|
-
exposureDelay?: ExposureDelayEnum;
|
|
590
|
-
/** Exposure program. The exposure settings that take priority can be selected. */
|
|
591
|
-
exposureProgram?: ExposureProgramEnum;
|
|
592
|
-
/** Image format used in shooting. */
|
|
593
|
-
fileFormat?: PhotoFileFormatEnum | VideoFileFormatEnum;
|
|
594
|
-
/** Image processing filter. */
|
|
595
|
-
filter?: FilterEnum;
|
|
596
|
-
/** GPS location information. */
|
|
597
|
-
gpsInfo?: GpsInfo;
|
|
598
|
-
/** Turns position information assigning ON/OFF. */
|
|
599
|
-
isGpsOn?: boolean;
|
|
600
|
-
/** ISO sensitivity */
|
|
601
|
-
iso?: IsoEnum;
|
|
602
|
-
/** ISO sensitivity upper limit when ISO sensitivity is set to automatic. */
|
|
603
|
-
isoAutoHighLimit?: IsoAutoHighLimitEnum;
|
|
604
|
-
/** Language used in camera OS. */
|
|
605
|
-
language?: LanguageEnum;
|
|
606
|
-
/** Maximum recordable time (in seconds) of the camera. */
|
|
607
|
-
maxRecordableTime?: MaxRecordableTimeEnum;
|
|
608
|
-
/** Length of standby time before the camera automatically powers OFF. */
|
|
609
|
-
offDelay?: OffDelayEnum;
|
|
610
|
-
/** Length of standby time before the camera enters the sleep mode. */
|
|
611
|
-
sleepDelay?: SleepDelayEnum;
|
|
612
|
-
/** The estimated remaining number of shots for the current shooting settings. */
|
|
613
|
-
remainingPictures?: number;
|
|
614
|
-
/** The estimated remaining shooting time (sec.) for the current video shooting settings. */
|
|
615
|
-
remainingVideoSeconds?: number;
|
|
616
|
-
/** Remaining usable storage space (byte). */
|
|
617
|
-
remainingSpace?: number;
|
|
618
|
-
/** Total storage space (byte). */
|
|
619
|
-
totalSpace?: number;
|
|
620
|
-
/** Shutter volume. */
|
|
621
|
-
shutterVolume?: number;
|
|
622
|
-
/** White balance. */
|
|
623
|
-
whiteBalance?: WhiteBalanceEnum;
|
|
624
|
-
/** GPS setting used in only capturing */
|
|
625
|
-
_gpsTagRecording?: GpsTagRecordingEnum;
|
|
626
|
-
};
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* initialize theta client sdk
|
|
630
|
-
*
|
|
631
|
-
* @function initialize
|
|
632
|
-
* @param {string} endPoint optional endpoint of camera
|
|
633
|
-
* @return promise of boolean result
|
|
634
|
-
**/
|
|
635
|
-
export function initialize(endPoint?: string): Promise<boolean> {
|
|
636
|
-
if (!endPoint) {
|
|
637
|
-
endPoint = 'http://192.168.1.1';
|
|
638
|
-
}
|
|
639
|
-
return ThetaClientReactNative.initialize(endPoint);
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
/**
|
|
643
|
-
* Get basic information about Theta.
|
|
644
|
-
*
|
|
645
|
-
* @function getThetaInfo
|
|
646
|
-
* @return promise of ThetaInfo
|
|
647
|
-
**/
|
|
648
|
-
export function getThetaInfo(): Promise<ThetaInfo> {
|
|
649
|
-
return ThetaClientReactNative.getThetaInfo();
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
/**
|
|
653
|
-
* Get current state of Theta.
|
|
654
|
-
*
|
|
655
|
-
* @function getThetaState
|
|
656
|
-
* @return promise of ThetaState
|
|
657
|
-
**/
|
|
658
|
-
export function getThetaState(): Promise<ThetaState> {
|
|
659
|
-
return ThetaClientReactNative.getThetaState();
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* Lists information of images and videos in Theta.
|
|
664
|
-
*
|
|
665
|
-
* @function listFiles
|
|
666
|
-
* @param {FileTypeEnum} fileType Type of the files to be listed.
|
|
667
|
-
* @param {number} startPosition The position of the first file to be
|
|
668
|
-
* returned in the list. 0 represents the first file. If
|
|
669
|
-
* startPosition is larger than the position of the last file, an
|
|
670
|
-
* empty list is returned.
|
|
671
|
-
* @param {number} entryCount Desired number of entries to return. If
|
|
672
|
-
* entryCount is more than the number of remaining files, just
|
|
673
|
-
* return entries of actual remaining files.
|
|
674
|
-
* @return promise of A list of file information.
|
|
675
|
-
*/
|
|
676
|
-
export function listFiles(
|
|
677
|
-
fileTypeEnum: FileTypeEnum,
|
|
678
|
-
startPosition: number = 0,
|
|
679
|
-
entryCount: number
|
|
680
|
-
): Promise<FileInfo[]> {
|
|
681
|
-
return ThetaClientReactNative.listFiles(fileTypeEnum, startPosition, entryCount);
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
/**
|
|
685
|
-
* Delete files in Theta.
|
|
686
|
-
*
|
|
687
|
-
* @function deleteFiles
|
|
688
|
-
* @param {string[]} fileUrls URLs of the file to be deleted.
|
|
689
|
-
* @return promise of boolean result
|
|
690
|
-
*/
|
|
691
|
-
export function deleteFiles(fileUrls: string[]): Promise<boolean> {
|
|
692
|
-
return ThetaClientReactNative.deleteFiles(fileUrls);
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
/**
|
|
696
|
-
* Delete all files in Theta.
|
|
697
|
-
*
|
|
698
|
-
* @function deleteAllFiles
|
|
699
|
-
* @return promise of boolean result
|
|
700
|
-
*/
|
|
701
|
-
export function deleteAllFiles(): Promise<boolean> {
|
|
702
|
-
return ThetaClientReactNative.deleteAllFiles();
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
/**
|
|
706
|
-
* Delete all image files in Theta.
|
|
707
|
-
*
|
|
708
|
-
* @function deleteAllImageFiles
|
|
709
|
-
* @return promise of boolean result
|
|
710
|
-
*/
|
|
711
|
-
export function deleteAllImageFiles(): Promise<boolean> {
|
|
712
|
-
return ThetaClientReactNative.deleteAllImageFiles();
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
/**
|
|
716
|
-
* Delete all video files in Theta.
|
|
717
|
-
*
|
|
718
|
-
* @function deleteAllVideoFiles
|
|
719
|
-
* @return promise of boolean result
|
|
720
|
-
*/
|
|
721
|
-
export function deleteAllVideoFiles(): Promise<boolean> {
|
|
722
|
-
return ThetaClientReactNative.deleteAllVideoFiles();
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
/**
|
|
726
|
-
* Acquires the properties and property support specifications for
|
|
727
|
-
* shooting, the camera, etc.
|
|
728
|
-
*
|
|
729
|
-
* @function getOptions
|
|
730
|
-
* @param {OptionNameEnum[]} optionNames List of OptionNameEnum.
|
|
731
|
-
* @return promise of Options acquired
|
|
732
|
-
*/
|
|
733
|
-
export function getOptions(optionNames: OptionNameEnum[]): Promise<Options> {
|
|
734
|
-
return ThetaClientReactNative.getOptions(optionNames);
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
/**
|
|
738
|
-
* Property settings for shooting, the camera, etc.
|
|
739
|
-
*
|
|
740
|
-
* @function setOptions
|
|
741
|
-
* @param {Options} options Camera setting options.
|
|
742
|
-
* @return promise of boolean result
|
|
743
|
-
*/
|
|
744
|
-
export function setOptions(options: Options): Promise<boolean> {
|
|
745
|
-
return ThetaClientReactNative.setOptions(options);
|
|
746
|
-
}
|
|
747
|
-
|
|
748
20
|
/** theta frame event name */
|
|
749
21
|
export const THETA_EVENT_NAME = ThetaClientReactNative.DEFAULT_EVENT_NAME;
|
|
750
22
|
|
|
751
|
-
|
|
752
|
-
*
|
|
753
|
-
*
|
|
754
|
-
* {
|
|
755
|
-
* "data": "DataURL of JPEG Frame"
|
|
756
|
-
* }
|
|
757
|
-
*
|
|
758
|
-
* @function StartLivePreview
|
|
759
|
-
* @return promise of boolean result
|
|
760
|
-
*/
|
|
761
|
-
export function getLivePreview(): Promise<boolean> {
|
|
762
|
-
return ThetaClientReactNative.getLivePreview();
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
/**
|
|
766
|
-
* Stop live preview.
|
|
767
|
-
*
|
|
768
|
-
* @function StopLivePreview
|
|
769
|
-
*/
|
|
770
|
-
export function stopLivePreview() {
|
|
771
|
-
ThetaClientReactNative.stopLivePreview();
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
/**
|
|
775
|
-
* PhotoCapture class
|
|
776
|
-
*/
|
|
777
|
-
export class PhotoCapture {
|
|
778
|
-
/**
|
|
779
|
-
* @return promise of token file url
|
|
780
|
-
*/
|
|
781
|
-
takePicture(): Promise<string> {
|
|
782
|
-
return ThetaClientReactNative.takePicture();
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
/**
|
|
787
|
-
* Capture Builder class
|
|
788
|
-
*/
|
|
789
|
-
export class CaptureBuilder {
|
|
790
|
-
/** capture options */
|
|
791
|
-
options: Options;
|
|
792
|
-
|
|
793
|
-
/** construct capture builder instance */
|
|
794
|
-
constructor() {
|
|
795
|
-
this.options = {};
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
/**
|
|
799
|
-
* Set aperture value.
|
|
800
|
-
* @param {ApertureEnum} aperture aperture value to set
|
|
801
|
-
* @return CaptureBuilder
|
|
802
|
-
*/
|
|
803
|
-
setAperture(aperture: ApertureEnum): CaptureBuilder {
|
|
804
|
-
this.options.aperture = aperture;
|
|
805
|
-
return this;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
/**
|
|
809
|
-
* Set color temperature of the camera (Kelvin).
|
|
810
|
-
* @param {number} kelvin Color temperature to set
|
|
811
|
-
* @return CaptureBuilder
|
|
812
|
-
*/
|
|
813
|
-
setColorTemperature(kelvin: number): CaptureBuilder {
|
|
814
|
-
this.options.colorTemperature = kelvin;
|
|
815
|
-
return this;
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
/**
|
|
819
|
-
* Set exposure compensation (EV).
|
|
820
|
-
* @param {ExposureCompensationEnum} value Exposure compensation to set
|
|
821
|
-
* @return CaptureBuilder
|
|
822
|
-
*/
|
|
823
|
-
setExposureCompensation(value: ExposureCompensationEnum): CaptureBuilder {
|
|
824
|
-
this.options.exposureCompensation = value;
|
|
825
|
-
return this;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* Set operating time (sec.) of the self-timer.
|
|
830
|
-
* @param {ExposureDelayEnum} delay Operating time to set
|
|
831
|
-
* @return CaptureBuilder
|
|
832
|
-
*/
|
|
833
|
-
setExposureDelay(delay: ExposureDelayEnum): CaptureBuilder {
|
|
834
|
-
this.options.exposureDelay = delay;
|
|
835
|
-
return this;
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
/**
|
|
839
|
-
* Set exposure program. The exposure settings that take priority can be selected.
|
|
840
|
-
* @param {ExposureProgramEnum} program Exposure program to set
|
|
841
|
-
* @return CaptureBuilder
|
|
842
|
-
*/
|
|
843
|
-
setExposureProgram(program: ExposureProgramEnum): CaptureBuilder {
|
|
844
|
-
this.options.exposureProgram = program;
|
|
845
|
-
return this;
|
|
846
|
-
}
|
|
847
|
-
/**
|
|
848
|
-
* Set GPS information.
|
|
849
|
-
* @param {GpsInfo} gpsInfo GPS information to set
|
|
850
|
-
* @return CaptureBuilder
|
|
851
|
-
*/
|
|
852
|
-
setGpsInfo(gpsInfo: GpsInfo): CaptureBuilder {
|
|
853
|
-
this.options.gpsInfo = gpsInfo;
|
|
854
|
-
return this;
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
/**
|
|
858
|
-
* Set turns position information assigning ON/OFF.
|
|
859
|
-
* @param {GpsTagRecordingEnum} value Turns position information assigning ON/OFF to set
|
|
860
|
-
* @return CaptureBuilder
|
|
861
|
-
*/
|
|
862
|
-
setGpsTagRecording(value: GpsTagRecordingEnum): CaptureBuilder {
|
|
863
|
-
this.options._gpsTagRecording = value;
|
|
864
|
-
return this;
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
/**
|
|
868
|
-
* Set ISO sensitivity.
|
|
869
|
-
* @param {IsoEnum} iso ISO sensitivity to set
|
|
870
|
-
* @return CaptureBuilder
|
|
871
|
-
*/
|
|
872
|
-
setIso(iso: IsoEnum): CaptureBuilder {
|
|
873
|
-
this.options.iso = iso;
|
|
874
|
-
return this;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
/**
|
|
878
|
-
* Set ISO sensitivity upper limit when ISO sensitivity is set to automatic.
|
|
879
|
-
* @param {IsoAutoHighLimitEnum} iso ISO sensitivity upper limit to set
|
|
880
|
-
* @return CaptureBuilder
|
|
881
|
-
*/
|
|
882
|
-
setIsoAutoHighLimit(iso: IsoAutoHighLimitEnum): CaptureBuilder {
|
|
883
|
-
this.options.isoAutoHighLimit = iso;
|
|
884
|
-
return this;
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
/**
|
|
888
|
-
* Set white balance.
|
|
889
|
-
* @param {WhiteBalanceEnum} whiteBalance White balance to set
|
|
890
|
-
* @return CaptureBuilder
|
|
891
|
-
*/
|
|
892
|
-
setWhiteBalance(whiteBalance: WhiteBalanceEnum): CaptureBuilder {
|
|
893
|
-
this.options.whiteBalance = whiteBalance;
|
|
894
|
-
return this;
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
/**
|
|
899
|
-
* PhotoCaptureBuilder class
|
|
900
|
-
*/
|
|
901
|
-
export class PhotoCaptureBuilder extends CaptureBuilder {
|
|
902
|
-
/** construct PhotoCaptureBuilder instance */
|
|
903
|
-
constructor() {
|
|
904
|
-
super();
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
/**
|
|
908
|
-
* Set photo file format.
|
|
909
|
-
* @param {PhotoFileFormatEnum} fileFormat Photo file format to set
|
|
910
|
-
* @return PhotoCaptureBuilder
|
|
911
|
-
*/
|
|
912
|
-
setFileFormat(fileFormat: PhotoFileFormatEnum): PhotoCaptureBuilder {
|
|
913
|
-
this.options.fileFormat = fileFormat;
|
|
914
|
-
return this;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
/**
|
|
918
|
-
* Set image processing filter.
|
|
919
|
-
* @param {FilterEnum} filter Image processing filter to set
|
|
920
|
-
* @return PhotoCaptureBuilder
|
|
921
|
-
*/
|
|
922
|
-
setFilter(filter: FilterEnum): PhotoCaptureBuilder {
|
|
923
|
-
this.options.filter = filter;
|
|
924
|
-
return this;
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
/**
|
|
928
|
-
* Builds an instance of a PhotoCapture that has all the combined
|
|
929
|
-
* parameters of the Options that have been added to the Builder.
|
|
930
|
-
*
|
|
931
|
-
* @return promise of PhotoCapture instance
|
|
932
|
-
*/
|
|
933
|
-
build(): Promise<PhotoCapture> {
|
|
934
|
-
return ThetaClientReactNative.buildPhotoCapture(this.options).then(
|
|
935
|
-
() => new PhotoCapture()
|
|
936
|
-
);
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
/**
|
|
941
|
-
* Get PhotoCaptureBuilder for take a picture.
|
|
942
|
-
*
|
|
943
|
-
* @function getPhotoCaptureBuilder
|
|
944
|
-
* @return created PhotoCaptureBuilder
|
|
945
|
-
*/
|
|
946
|
-
export function getPhotoCaptureBuilder(): PhotoCaptureBuilder {
|
|
947
|
-
ThetaClientReactNative.getPhotoCaptureBuilder();
|
|
948
|
-
return new PhotoCaptureBuilder();
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
/**
|
|
952
|
-
* VideoCapture class
|
|
953
|
-
*/
|
|
954
|
-
export class VideoCapture {
|
|
955
|
-
/**
|
|
956
|
-
* start video capture
|
|
957
|
-
* @return promise of captured file url
|
|
958
|
-
*/
|
|
959
|
-
startCapture(): Promise<string> {
|
|
960
|
-
return ThetaClientReactNative.startCapture();
|
|
961
|
-
}
|
|
962
|
-
/**
|
|
963
|
-
* stop video capture
|
|
964
|
-
*/
|
|
965
|
-
stopCapture() {
|
|
966
|
-
ThetaClientReactNative.stopCapture();
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
/**
|
|
971
|
-
* VideoCaptureBuilder class
|
|
972
|
-
*/
|
|
973
|
-
export class VideoCaptureBuilder extends CaptureBuilder {
|
|
974
|
-
/** construct VideoCaptureBuilder instance */
|
|
975
|
-
constructor() {
|
|
976
|
-
super();
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
/**
|
|
980
|
-
* Set video file format.
|
|
981
|
-
* @param {VideoFileFormatEnum} fileFormat Video file format to set
|
|
982
|
-
* @return VideoCaptureBuilder
|
|
983
|
-
*/
|
|
984
|
-
setFileFormat(fileFormat: VideoFileFormatEnum): VideoCaptureBuilder {
|
|
985
|
-
this.options.fileFormat = fileFormat;
|
|
986
|
-
return this;
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
/**
|
|
990
|
-
* Set maximum recordable time (in seconds) of the camera.
|
|
991
|
-
* @param {MaxRecordableTimeEnum} time Maximum recordable time to set
|
|
992
|
-
* @return VideoCaptureBuilder
|
|
993
|
-
*/
|
|
994
|
-
setMaxRecordableTime(time: MaxRecordableTimeEnum): VideoCaptureBuilder {
|
|
995
|
-
this.options.maxRecordableTime = time;
|
|
996
|
-
return this;
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
/**
|
|
1000
|
-
* Builds an instance of a VideoCapture that has all the combined
|
|
1001
|
-
* parameters of the Options that have been added to the Builder.
|
|
1002
|
-
*
|
|
1003
|
-
* @return promise of VideoCapture instance
|
|
1004
|
-
*/
|
|
1005
|
-
build(): Promise<VideoCapture> {
|
|
1006
|
-
return ThetaClientReactNative.buildVideoCapture(this.options).then(
|
|
1007
|
-
() => new VideoCapture()
|
|
1008
|
-
);
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
/**
|
|
1013
|
-
* Get PhotoCapture.Builder for capture video.
|
|
1014
|
-
*
|
|
1015
|
-
* @function getVideoCaptureBuilder
|
|
1016
|
-
* @return created VideoCaptureBuilder instance
|
|
1017
|
-
*/
|
|
1018
|
-
export function getVideoCaptureBuilder(): VideoCaptureBuilder {
|
|
1019
|
-
ThetaClientReactNative.getVideoCaptureBuilder();
|
|
1020
|
-
return new VideoCaptureBuilder();
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
/**
|
|
1024
|
-
* exif information
|
|
1025
|
-
*/
|
|
1026
|
-
export type Exif = {
|
|
1027
|
-
/** EXIF Support version */
|
|
1028
|
-
exifVersion: string;
|
|
1029
|
-
/** File created or updated date and time */
|
|
1030
|
-
dateTime: string;
|
|
1031
|
-
/** Image width (pixel). Theta X returns null. */
|
|
1032
|
-
imageWidth?: number;
|
|
1033
|
-
/** Image height (pixel). Theta X returns null. */
|
|
1034
|
-
imageLength?: number;
|
|
1035
|
-
/** GPS latitude if exists. */
|
|
1036
|
-
gpsLatitude?: number;
|
|
1037
|
-
/** GPS longitude if exists. */
|
|
1038
|
-
gpsLongitude?: number;
|
|
1039
|
-
};
|
|
1040
|
-
|
|
1041
|
-
/**
|
|
1042
|
-
* Photo sphere XMP metadata of a still image.
|
|
1043
|
-
*/
|
|
1044
|
-
export type Xmp = {
|
|
1045
|
-
/** Compass heading, for the center the image. Theta X returns null. */
|
|
1046
|
-
poseHeadingDegrees?: number;
|
|
1047
|
-
/** Image width (pixel). */
|
|
1048
|
-
fullPanoWidthPixels: number;
|
|
1049
|
-
/** Image height (pixel). */
|
|
1050
|
-
fullPanoHeightPixels: number;
|
|
1051
|
-
};
|
|
1052
|
-
|
|
1053
|
-
/**
|
|
1054
|
-
* metadata of a still image
|
|
1055
|
-
*/
|
|
1056
|
-
export type MetaInfo = {
|
|
1057
|
-
/** exif information */
|
|
1058
|
-
exif?: Exif;
|
|
1059
|
-
/** xmp information */
|
|
1060
|
-
xmp?: Xmp;
|
|
1061
|
-
};
|
|
1062
|
-
|
|
1063
|
-
/**
|
|
1064
|
-
* Get metadata of a still image
|
|
1065
|
-
*
|
|
1066
|
-
* @function getMetadata
|
|
1067
|
-
* @param {string} fileUrl URL of a still image file to get metadata
|
|
1068
|
-
* @return promise of MetaInfo
|
|
1069
|
-
*/
|
|
1070
|
-
export function getMetadata(fileUrl: string): Promise<MetaInfo> {
|
|
1071
|
-
return ThetaClientReactNative.getMetadata(fileUrl);
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
/**
|
|
1075
|
-
* Reset all device settings and capture settings.
|
|
1076
|
-
* After reset, the camera will be restarted.
|
|
1077
|
-
*
|
|
1078
|
-
* @function reset
|
|
1079
|
-
* @return promise of boolean result
|
|
1080
|
-
*/
|
|
1081
|
-
export function reset(): Promise<boolean> {
|
|
1082
|
-
return ThetaClientReactNative.reset();
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
/**
|
|
1086
|
-
* Restore setting to THETA
|
|
1087
|
-
*
|
|
1088
|
-
* @function restoreSettings
|
|
1089
|
-
* @return promise of boolean result
|
|
1090
|
-
*/
|
|
1091
|
-
export function restoreSettings(): Promise<boolean> {
|
|
1092
|
-
return ThetaClientReactNative.restoreSettings();
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
/**
|
|
1096
|
-
* Stop running self-timer.
|
|
1097
|
-
*
|
|
1098
|
-
* @function stopSelfTimer
|
|
1099
|
-
* @return promise of boolean result
|
|
1100
|
-
*/
|
|
1101
|
-
export function stopSelfTimer(): Promise<boolean> {
|
|
1102
|
-
return ThetaClientReactNative.stopSelfTimer();
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
/**
|
|
1106
|
-
* Converts the movie format of a saved movie.
|
|
1107
|
-
*
|
|
1108
|
-
* @function convertVideoFormats
|
|
1109
|
-
* @param {string} fileUrl URL of a saved movie file to convert
|
|
1110
|
-
* @param {boolean} toLowResolution If true generates lower resolution
|
|
1111
|
-
* video, otherwise same resolution.
|
|
1112
|
-
* @param {boolean} applyTopBottomCorrection apply Top/bottom
|
|
1113
|
-
* correction. This parameter is ignored on Theta X.
|
|
1114
|
-
* @return promise of URL of a converted movie file.
|
|
1115
|
-
*/
|
|
1116
|
-
export function convertVideoFormats(
|
|
1117
|
-
fileUrl: string,
|
|
1118
|
-
toLowResolution: boolean,
|
|
1119
|
-
applyTopBottomCorrection: boolean
|
|
1120
|
-
): Promise<string> {
|
|
1121
|
-
return ThetaClientReactNative.convertVideoFormats(
|
|
1122
|
-
fileUrl,
|
|
1123
|
-
toLowResolution,
|
|
1124
|
-
applyTopBottomCorrection
|
|
1125
|
-
);
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
/**
|
|
1129
|
-
* Cancels the movie format conversion.
|
|
1130
|
-
*
|
|
1131
|
-
* @function cancelVideoConvert
|
|
1132
|
-
* @return promise of boolean result
|
|
1133
|
-
*/
|
|
1134
|
-
export function cancelVideoConvert(): Promise<boolean> {
|
|
1135
|
-
return ThetaClientReactNative.cancelVideoConvert();
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
/**
|
|
1139
|
-
* Turns the wireless LAN off.
|
|
1140
|
-
*
|
|
1141
|
-
* @function finishWlan
|
|
1142
|
-
* @return promise of boolean result
|
|
1143
|
-
*/
|
|
1144
|
-
export function finishWlan(): Promise<boolean> {
|
|
1145
|
-
return ThetaClientReactNative.finishWlan();
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
/**
|
|
1149
|
-
* Enum for authentication mode.
|
|
1150
|
-
*/
|
|
1151
|
-
export const AuthModeEnum = {
|
|
1152
|
-
/** None of authentication */
|
|
1153
|
-
NONE: 'NONE',
|
|
1154
|
-
/** Wep authentication */
|
|
1155
|
-
WEP: 'WEP',
|
|
1156
|
-
/** WPA PSK or WPA2 PSK authentication */
|
|
1157
|
-
WPA: 'WPA',
|
|
1158
|
-
} as const;
|
|
1159
|
-
|
|
1160
|
-
/** type definition of AuthModeEnum */
|
|
1161
|
-
export type AuthModeEnum = typeof AuthModeEnum[keyof typeof AuthModeEnum];
|
|
1162
|
-
|
|
1163
|
-
/** Access point information. */
|
|
1164
|
-
export type AccessPoint = {
|
|
1165
|
-
/** SSID of the access point. */
|
|
1166
|
-
ssid: string;
|
|
1167
|
-
/** true if SSID stealth is enabled. */
|
|
1168
|
-
ssidStealth: boolean;
|
|
1169
|
-
/** Authentication mode. */
|
|
1170
|
-
authMode: AuthModeEnum;
|
|
1171
|
-
/** Connection priority 1 to 5. */
|
|
1172
|
-
connectionPriority: number;
|
|
1173
|
-
/** Using DHCP or not. */
|
|
1174
|
-
usingDhcp: boolean;
|
|
1175
|
-
/** IP address assigned to camera. */
|
|
1176
|
-
ipAddress?: string;
|
|
1177
|
-
/** Subnet Mask. */
|
|
1178
|
-
subnetMask?: string;
|
|
1179
|
-
/** Default Gateway. */
|
|
1180
|
-
defaultGateway?: string;
|
|
1181
|
-
};
|
|
1182
|
-
|
|
1183
|
-
/**
|
|
1184
|
-
* Acquires the access point list used in client mode.
|
|
1185
|
-
*
|
|
1186
|
-
* @function listAccessPoints
|
|
1187
|
-
* @return promise of AccessPoint list
|
|
1188
|
-
*/
|
|
1189
|
-
export function listAccessPoints(): Promise<AccessPoint[]> {
|
|
1190
|
-
return ThetaClientReactNative.listAccessPoints();
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
/**
|
|
1194
|
-
* Set access point. IP address is set dynamically.
|
|
1195
|
-
*
|
|
1196
|
-
* @function setAccessPointDynamically
|
|
1197
|
-
* @param {string} ssid SSID of the access point.
|
|
1198
|
-
* @param {boolean} ssidStealth true if SSID stealth is enabled.
|
|
1199
|
-
* @param {AuthModeEnum} authMode Authentication mode.
|
|
1200
|
-
* @param {string} password Password. If authMode is "NONE", pass empty String.
|
|
1201
|
-
* @param {number} connectionPriority Connection priority 1 to 5.
|
|
1202
|
-
* @return promise of boolean result
|
|
1203
|
-
*/
|
|
1204
|
-
export function setAccessPointDynamically(
|
|
1205
|
-
ssid: string,
|
|
1206
|
-
ssidStealth: boolean = false,
|
|
1207
|
-
authMode: AuthModeEnum = AuthModeEnum.NONE,
|
|
1208
|
-
password: string = '',
|
|
1209
|
-
connectionPriority: number = 1
|
|
1210
|
-
): Promise<boolean> {
|
|
1211
|
-
return ThetaClientReactNative.setAccessPointDynamically(
|
|
1212
|
-
ssid,
|
|
1213
|
-
ssidStealth,
|
|
1214
|
-
authMode,
|
|
1215
|
-
password,
|
|
1216
|
-
connectionPriority
|
|
1217
|
-
);
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
/**
|
|
1221
|
-
* Set access point. IP address is set statically.
|
|
1222
|
-
*
|
|
1223
|
-
* @function setAccessPointStatically
|
|
1224
|
-
* @param {string} ssid SSID of the access point.
|
|
1225
|
-
* @param {boolean} ssidStealth True if SSID stealth is enabled.
|
|
1226
|
-
* @param {AuthModeEnum} authMode Authentication mode.
|
|
1227
|
-
* @param {string} password Password. If authMode is "NONE", pass empty String.
|
|
1228
|
-
* @param {number} connectionPriority Connection priority 1 to 5.
|
|
1229
|
-
* @param {string} ipAddress IP address assigns to Theta.
|
|
1230
|
-
* @param {string} subnetMask Subnet mask.
|
|
1231
|
-
* @param {string} defaultGateway Default gateway.
|
|
1232
|
-
* @return promise of boolean result
|
|
1233
|
-
*/
|
|
1234
|
-
export function setAccessPointStatically(
|
|
1235
|
-
ssid: string,
|
|
1236
|
-
ssidStealth: boolean = false,
|
|
1237
|
-
authMode: AuthModeEnum = AuthModeEnum.NONE,
|
|
1238
|
-
password: string = '',
|
|
1239
|
-
connectionPriority: number = 1,
|
|
1240
|
-
ipAddress: string,
|
|
1241
|
-
subnetMask: string,
|
|
1242
|
-
defaultGateway: string
|
|
1243
|
-
): Promise<boolean> {
|
|
1244
|
-
return ThetaClientReactNative.setAccessPointStatically(
|
|
1245
|
-
ssid,
|
|
1246
|
-
ssidStealth,
|
|
1247
|
-
authMode,
|
|
1248
|
-
password,
|
|
1249
|
-
connectionPriority,
|
|
1250
|
-
ipAddress,
|
|
1251
|
-
subnetMask,
|
|
1252
|
-
defaultGateway
|
|
1253
|
-
);
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
/**
|
|
1257
|
-
* Deletes access point information used in client mode.
|
|
1258
|
-
*
|
|
1259
|
-
* @function deleteAccessPoint
|
|
1260
|
-
* @param {string} ssid SSID of the access point to delete.
|
|
1261
|
-
* @return promise of boolean result
|
|
1262
|
-
*/
|
|
1263
|
-
export function deleteAccessPoint(ssid: string): Promise<boolean> {
|
|
1264
|
-
return ThetaClientReactNative.deleteAccessPoint(ssid);
|
|
1265
|
-
}
|
|
23
|
+
export * from './theta-repository';
|
|
24
|
+
export * from './theta-repository/options';
|
|
25
|
+
export * from './capture';
|