theta-client-react-native 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/AndroidManifest.xml +1 -1
  3. package/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +647 -0
  4. package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +487 -85
  5. package/ios/ThetaClientReactNative.h +6 -0
  6. package/ios/ThetaClientReactNative.mm +1675 -181
  7. package/ios/ThetaClientReactNative.xcodeproj/project.pbxproj +2 -2
  8. package/lib/commonjs/capture/index.js +11 -0
  9. package/lib/commonjs/capture/index.js.map +1 -1
  10. package/lib/commonjs/capture/notify.js +12 -0
  11. package/lib/commonjs/capture/notify.js.map +1 -0
  12. package/lib/commonjs/capture/time-shift-capture.js +135 -0
  13. package/lib/commonjs/capture/time-shift-capture.js.map +1 -0
  14. package/lib/commonjs/theta-repository/access-point.js.map +1 -1
  15. package/lib/commonjs/theta-repository/digest-auth.js +2 -0
  16. package/lib/commonjs/theta-repository/digest-auth.js.map +1 -0
  17. package/lib/commonjs/theta-repository/index.js +37 -4
  18. package/lib/commonjs/theta-repository/index.js.map +1 -1
  19. package/lib/commonjs/theta-repository/options/index.js +198 -0
  20. package/lib/commonjs/theta-repository/options/index.js.map +1 -1
  21. package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.js +17 -0
  22. package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.js.map +1 -0
  23. package/lib/commonjs/theta-repository/options/option-bitrate.js +64 -0
  24. package/lib/commonjs/theta-repository/options/option-bitrate.js.map +1 -0
  25. package/lib/commonjs/theta-repository/options/option-burst-mode.js +23 -0
  26. package/lib/commonjs/theta-repository/options/option-burst-mode.js.map +1 -0
  27. package/lib/commonjs/theta-repository/options/option-burst-option.js +140 -0
  28. package/lib/commonjs/theta-repository/options/option-burst-option.js.map +1 -0
  29. package/lib/commonjs/theta-repository/options/option-camera-control-source.js +29 -0
  30. package/lib/commonjs/theta-repository/options/option-camera-control-source.js.map +1 -0
  31. package/lib/commonjs/theta-repository/options/option-camera-mode.js +26 -0
  32. package/lib/commonjs/theta-repository/options/option-camera-mode.js.map +1 -0
  33. package/lib/commonjs/theta-repository/options/option-capture-mode.js +30 -0
  34. package/lib/commonjs/theta-repository/options/option-capture-mode.js.map +1 -0
  35. package/lib/commonjs/theta-repository/options/option-continuous-number.js +71 -0
  36. package/lib/commonjs/theta-repository/options/option-continuous-number.js.map +1 -0
  37. package/lib/commonjs/theta-repository/options/option-filter.js +32 -0
  38. package/lib/commonjs/theta-repository/options/option-filter.js.map +1 -0
  39. package/lib/commonjs/theta-repository/options/option-network-type.js +26 -0
  40. package/lib/commonjs/theta-repository/options/option-network-type.js.map +1 -0
  41. package/lib/commonjs/theta-repository/options/option-power-saving.js +24 -0
  42. package/lib/commonjs/theta-repository/options/option-power-saving.js.map +1 -0
  43. package/lib/commonjs/theta-repository/options/option-preset.js +26 -0
  44. package/lib/commonjs/theta-repository/options/option-preset.js.map +1 -0
  45. package/lib/commonjs/theta-repository/options/option-preview-format.js +32 -0
  46. package/lib/commonjs/theta-repository/options/option-preview-format.js.map +1 -0
  47. package/lib/commonjs/theta-repository/options/option-proxy.js +2 -0
  48. package/lib/commonjs/theta-repository/options/option-proxy.js.map +1 -0
  49. package/lib/commonjs/theta-repository/options/option-shooting-method.js +41 -0
  50. package/lib/commonjs/theta-repository/options/option-shooting-method.js.map +1 -0
  51. package/lib/commonjs/theta-repository/options/option-shutter-speed.js +302 -0
  52. package/lib/commonjs/theta-repository/options/option-shutter-speed.js.map +1 -0
  53. package/lib/commonjs/theta-repository/options/option-time-shift.js +43 -0
  54. package/lib/commonjs/theta-repository/options/option-time-shift.js.map +1 -0
  55. package/lib/commonjs/theta-repository/options/option-wlan-frequency.js +22 -0
  56. package/lib/commonjs/theta-repository/options/option-wlan-frequency.js.map +1 -0
  57. package/lib/commonjs/theta-repository/options/options.js +52 -26
  58. package/lib/commonjs/theta-repository/options/options.js.map +1 -1
  59. package/lib/commonjs/theta-repository/theta-config.js +6 -0
  60. package/lib/commonjs/theta-repository/theta-config.js.map +1 -0
  61. package/lib/commonjs/theta-repository/theta-files.js +33 -1
  62. package/lib/commonjs/theta-repository/theta-files.js.map +1 -1
  63. package/lib/commonjs/theta-repository/theta-info.js +29 -0
  64. package/lib/commonjs/theta-repository/theta-info.js.map +1 -1
  65. package/lib/commonjs/theta-repository/theta-repository.js +56 -8
  66. package/lib/commonjs/theta-repository/theta-repository.js.map +1 -1
  67. package/lib/commonjs/theta-repository/theta-timeout.js +2 -0
  68. package/lib/commonjs/theta-repository/theta-timeout.js.map +1 -0
  69. package/lib/module/capture/index.js +1 -0
  70. package/lib/module/capture/index.js.map +1 -1
  71. package/lib/module/capture/notify.js +6 -0
  72. package/lib/module/capture/notify.js.map +1 -0
  73. package/lib/module/capture/time-shift-capture.js +127 -0
  74. package/lib/module/capture/time-shift-capture.js.map +1 -0
  75. package/lib/module/theta-repository/access-point.js.map +1 -1
  76. package/lib/module/theta-repository/digest-auth.js +2 -0
  77. package/lib/module/theta-repository/digest-auth.js.map +1 -0
  78. package/lib/module/theta-repository/index.js +4 -1
  79. package/lib/module/theta-repository/index.js.map +1 -1
  80. package/lib/module/theta-repository/options/index.js +18 -0
  81. package/lib/module/theta-repository/options/index.js.map +1 -1
  82. package/lib/module/theta-repository/options/option-ai-auto-thumbnail.js +10 -0
  83. package/lib/module/theta-repository/options/option-ai-auto-thumbnail.js.map +1 -0
  84. package/lib/module/theta-repository/options/option-bitrate.js +57 -0
  85. package/lib/module/theta-repository/options/option-bitrate.js.map +1 -0
  86. package/lib/module/theta-repository/options/option-burst-mode.js +16 -0
  87. package/lib/module/theta-repository/options/option-burst-mode.js.map +1 -0
  88. package/lib/module/theta-repository/options/option-burst-option.js +133 -0
  89. package/lib/module/theta-repository/options/option-burst-option.js.map +1 -0
  90. package/lib/module/theta-repository/options/option-camera-control-source.js +22 -0
  91. package/lib/module/theta-repository/options/option-camera-control-source.js.map +1 -0
  92. package/lib/module/theta-repository/options/option-camera-mode.js +19 -0
  93. package/lib/module/theta-repository/options/option-camera-mode.js.map +1 -0
  94. package/lib/module/theta-repository/options/option-capture-mode.js +23 -0
  95. package/lib/module/theta-repository/options/option-capture-mode.js.map +1 -0
  96. package/lib/module/theta-repository/options/option-continuous-number.js +64 -0
  97. package/lib/module/theta-repository/options/option-continuous-number.js.map +1 -0
  98. package/lib/module/theta-repository/options/option-filter.js +25 -0
  99. package/lib/module/theta-repository/options/option-filter.js.map +1 -0
  100. package/lib/module/theta-repository/options/option-network-type.js +19 -0
  101. package/lib/module/theta-repository/options/option-network-type.js.map +1 -0
  102. package/lib/module/theta-repository/options/option-power-saving.js +17 -0
  103. package/lib/module/theta-repository/options/option-power-saving.js.map +1 -0
  104. package/lib/module/theta-repository/options/option-preset.js +19 -0
  105. package/lib/module/theta-repository/options/option-preset.js.map +1 -0
  106. package/lib/module/theta-repository/options/option-preview-format.js +25 -0
  107. package/lib/module/theta-repository/options/option-preview-format.js.map +1 -0
  108. package/lib/module/theta-repository/options/option-proxy.js +2 -0
  109. package/lib/module/theta-repository/options/option-proxy.js.map +1 -0
  110. package/lib/module/theta-repository/options/option-shooting-method.js +34 -0
  111. package/lib/module/theta-repository/options/option-shooting-method.js.map +1 -0
  112. package/lib/module/theta-repository/options/option-shutter-speed.js +295 -0
  113. package/lib/module/theta-repository/options/option-shutter-speed.js.map +1 -0
  114. package/lib/module/theta-repository/options/option-time-shift.js +36 -0
  115. package/lib/module/theta-repository/options/option-time-shift.js.map +1 -0
  116. package/lib/module/theta-repository/options/option-wlan-frequency.js +15 -0
  117. package/lib/module/theta-repository/options/option-wlan-frequency.js.map +1 -0
  118. package/lib/module/theta-repository/options/options.js +50 -24
  119. package/lib/module/theta-repository/options/options.js.map +1 -1
  120. package/lib/module/theta-repository/theta-config.js +2 -0
  121. package/lib/module/theta-repository/theta-config.js.map +1 -0
  122. package/lib/module/theta-repository/theta-files.js +32 -0
  123. package/lib/module/theta-repository/theta-files.js.map +1 -1
  124. package/lib/module/theta-repository/theta-info.js +22 -0
  125. package/lib/module/theta-repository/theta-info.js.map +1 -1
  126. package/lib/module/theta-repository/theta-repository.js +54 -9
  127. package/lib/module/theta-repository/theta-repository.js.map +1 -1
  128. package/lib/module/theta-repository/theta-timeout.js +2 -0
  129. package/lib/module/theta-repository/theta-timeout.js.map +1 -0
  130. package/lib/typescript/capture/capture.d.ts +1 -1
  131. package/lib/typescript/capture/capture.d.ts.map +1 -1
  132. package/lib/typescript/capture/index.d.ts +1 -0
  133. package/lib/typescript/capture/index.d.ts.map +1 -1
  134. package/lib/typescript/capture/notify.d.ts +13 -0
  135. package/lib/typescript/capture/notify.d.ts.map +1 -0
  136. package/lib/typescript/capture/time-shift-capture.d.ts +64 -0
  137. package/lib/typescript/capture/time-shift-capture.d.ts.map +1 -0
  138. package/lib/typescript/theta-repository/access-point.d.ts +4 -1
  139. package/lib/typescript/theta-repository/access-point.d.ts.map +1 -1
  140. package/lib/typescript/theta-repository/digest-auth.d.ts +17 -0
  141. package/lib/typescript/theta-repository/digest-auth.d.ts.map +1 -0
  142. package/lib/typescript/theta-repository/index.d.ts +4 -1
  143. package/lib/typescript/theta-repository/index.d.ts.map +1 -1
  144. package/lib/typescript/theta-repository/options/index.d.ts +18 -0
  145. package/lib/typescript/theta-repository/options/index.d.ts.map +1 -1
  146. package/lib/typescript/theta-repository/options/option-ai-auto-thumbnail.d.ts +10 -0
  147. package/lib/typescript/theta-repository/options/option-ai-auto-thumbnail.d.ts.map +1 -0
  148. package/lib/typescript/theta-repository/options/option-bitrate.d.ts +57 -0
  149. package/lib/typescript/theta-repository/options/option-bitrate.d.ts.map +1 -0
  150. package/lib/typescript/theta-repository/options/option-burst-mode.d.ts +16 -0
  151. package/lib/typescript/theta-repository/options/option-burst-mode.d.ts.map +1 -0
  152. package/lib/typescript/theta-repository/options/option-burst-option.d.ts +153 -0
  153. package/lib/typescript/theta-repository/options/option-burst-option.d.ts.map +1 -0
  154. package/lib/typescript/theta-repository/options/option-camera-control-source.d.ts +22 -0
  155. package/lib/typescript/theta-repository/options/option-camera-control-source.d.ts.map +1 -0
  156. package/lib/typescript/theta-repository/options/option-camera-mode.d.ts +19 -0
  157. package/lib/typescript/theta-repository/options/option-camera-mode.d.ts.map +1 -0
  158. package/lib/typescript/theta-repository/options/option-capture-mode.d.ts +23 -0
  159. package/lib/typescript/theta-repository/options/option-capture-mode.d.ts.map +1 -0
  160. package/lib/typescript/theta-repository/options/option-continuous-number.d.ts +64 -0
  161. package/lib/typescript/theta-repository/options/option-continuous-number.d.ts.map +1 -0
  162. package/lib/typescript/theta-repository/options/option-filter.d.ts +25 -0
  163. package/lib/typescript/theta-repository/options/option-filter.d.ts.map +1 -0
  164. package/lib/typescript/theta-repository/options/option-network-type.d.ts +19 -0
  165. package/lib/typescript/theta-repository/options/option-network-type.d.ts.map +1 -0
  166. package/lib/typescript/theta-repository/options/option-power-saving.d.ts +16 -0
  167. package/lib/typescript/theta-repository/options/option-power-saving.d.ts.map +1 -0
  168. package/lib/typescript/theta-repository/options/option-preset.d.ts +18 -0
  169. package/lib/typescript/theta-repository/options/option-preset.d.ts.map +1 -0
  170. package/lib/typescript/theta-repository/options/option-preview-format.d.ts +25 -0
  171. package/lib/typescript/theta-repository/options/option-preview-format.d.ts.map +1 -0
  172. package/lib/typescript/theta-repository/options/option-proxy.d.ts +23 -0
  173. package/lib/typescript/theta-repository/options/option-proxy.d.ts.map +1 -0
  174. package/lib/typescript/theta-repository/options/option-shooting-method.d.ts +33 -0
  175. package/lib/typescript/theta-repository/options/option-shooting-method.d.ts.map +1 -0
  176. package/lib/typescript/theta-repository/options/option-shutter-speed.d.ts +295 -0
  177. package/lib/typescript/theta-repository/options/option-shutter-speed.d.ts.map +1 -0
  178. package/lib/typescript/theta-repository/options/option-time-shift.d.ts +54 -0
  179. package/lib/typescript/theta-repository/options/option-time-shift.d.ts.map +1 -0
  180. package/lib/typescript/theta-repository/options/option-white-balance-auto-strength.d.ts +1 -1
  181. package/lib/typescript/theta-repository/options/option-white-balance-auto-strength.d.ts.map +1 -1
  182. package/lib/typescript/theta-repository/options/option-wlan-frequency.d.ts +15 -0
  183. package/lib/typescript/theta-repository/options/option-wlan-frequency.d.ts.map +1 -0
  184. package/lib/typescript/theta-repository/options/options.d.ts +187 -41
  185. package/lib/typescript/theta-repository/options/options.d.ts.map +1 -1
  186. package/lib/typescript/theta-repository/theta-config.d.ts +20 -0
  187. package/lib/typescript/theta-repository/theta-config.d.ts.map +1 -0
  188. package/lib/typescript/theta-repository/theta-files.d.ts +66 -3
  189. package/lib/typescript/theta-repository/theta-files.d.ts.map +1 -1
  190. package/lib/typescript/theta-repository/theta-info.d.ts +21 -0
  191. package/lib/typescript/theta-repository/theta-info.d.ts.map +1 -1
  192. package/lib/typescript/theta-repository/theta-repository.d.ts +36 -8
  193. package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -1
  194. package/lib/typescript/theta-repository/theta-state.d.ts +5 -5
  195. package/lib/typescript/theta-repository/theta-state.d.ts.map +1 -1
  196. package/lib/typescript/theta-repository/theta-timeout.d.ts +22 -0
  197. package/lib/typescript/theta-repository/theta-timeout.d.ts.map +1 -0
  198. package/package.json +1 -1
  199. package/src/capture/capture.ts +1 -1
  200. package/src/capture/index.ts +1 -0
  201. package/src/capture/notify.ts +27 -0
  202. package/src/capture/time-shift-capture.ts +145 -0
  203. package/src/theta-repository/access-point.ts +5 -1
  204. package/src/theta-repository/digest-auth.ts +16 -0
  205. package/src/theta-repository/index.ts +4 -1
  206. package/src/theta-repository/options/index.ts +18 -0
  207. package/src/theta-repository/options/option-ai-auto-thumbnail.ts +11 -0
  208. package/src/theta-repository/options/option-bitrate.ts +59 -0
  209. package/src/theta-repository/options/option-burst-mode.ts +16 -0
  210. package/src/theta-repository/options/option-burst-option.ts +175 -0
  211. package/src/theta-repository/options/option-camera-control-source.ts +24 -0
  212. package/src/theta-repository/options/option-camera-mode.ts +20 -0
  213. package/src/theta-repository/options/option-capture-mode.ts +24 -0
  214. package/src/theta-repository/options/option-continuous-number.ts +65 -0
  215. package/src/theta-repository/options/option-filter.ts +25 -0
  216. package/src/theta-repository/options/option-network-type.ts +20 -0
  217. package/src/theta-repository/options/option-power-saving.ts +18 -0
  218. package/src/theta-repository/options/option-preset.ts +19 -0
  219. package/src/theta-repository/options/option-preview-format.ts +26 -0
  220. package/src/theta-repository/options/option-proxy.ts +22 -0
  221. package/src/theta-repository/options/option-shooting-method.ts +35 -0
  222. package/src/theta-repository/options/option-shutter-speed.ts +360 -0
  223. package/src/theta-repository/options/option-time-shift.ts +59 -0
  224. package/src/theta-repository/options/option-white-balance-auto-strength.ts +1 -1
  225. package/src/theta-repository/options/option-wlan-frequency.ts +16 -0
  226. package/src/theta-repository/options/options.ts +188 -46
  227. package/src/theta-repository/theta-config.ts +20 -0
  228. package/src/theta-repository/theta-files.ts +73 -3
  229. package/src/theta-repository/theta-info.ts +23 -0
  230. package/src/theta-repository/theta-repository.ts +87 -18
  231. package/src/theta-repository/theta-state.ts +5 -5
  232. package/src/theta-repository/theta-timeout.ts +21 -0
  233. package/theta-client-react-native.podspec +1 -1
@@ -1,13 +1,24 @@
1
1
  import { AccessPoint, AuthModeEnum } from './access-point';
2
- import type { FileTypeEnum, ThetaFiles } from './theta-files';
2
+ import type { FileTypeEnum, StorageEnum, ThetaFiles } from './theta-files';
3
3
  import type { ThetaState } from './theta-state';
4
- import type { ThetaInfo } from './theta-info';
4
+ import type { ThetaInfo, ThetaModel } from './theta-info';
5
5
  import type { MetaInfo } from './theta-meta';
6
6
  import type { PluginInfo } from './theta-plugin';
7
7
 
8
8
  import { NativeModules } from 'react-native';
9
- import type { OptionNameEnum, Options, CaptureModeEnum } from './options';
10
- import { PhotoCaptureBuilder, VideoCaptureBuilder } from '../capture';
9
+ import type {
10
+ OptionNameEnum,
11
+ Options,
12
+ CaptureModeEnum,
13
+ Proxy,
14
+ } from './options';
15
+ import {
16
+ PhotoCaptureBuilder,
17
+ VideoCaptureBuilder,
18
+ TimeShiftCaptureBuilder,
19
+ } from '../capture';
20
+ import type { ThetaConfig } from './theta-config';
21
+ import type { ThetaTimeout } from './theta-timeout';
11
22
  const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
12
23
 
13
24
  /**
@@ -15,13 +26,26 @@ const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
15
26
  *
16
27
  * @function initialize
17
28
  * @param {string} endPoint optional endpoint of camera
29
+ * @param {ThetaConfig} config Configuration of initialize. If null, get from THETA.
30
+ * @param {ThetaTimeout} timeout Timeout of HTTP call.
18
31
  * @return promise of boolean result
19
32
  **/
20
- export function initialize(endPoint?: string): Promise<boolean> {
21
- if (!endPoint) {
22
- endPoint = 'http://192.168.1.1';
23
- }
24
- return ThetaClientReactNative.initialize(endPoint);
33
+ export function initialize(
34
+ endPoint: string = 'http://192.168.1.1',
35
+ config?: ThetaConfig,
36
+ timeout?: ThetaTimeout
37
+ ): Promise<boolean> {
38
+ return ThetaClientReactNative.initialize(endPoint, config, timeout);
39
+ }
40
+
41
+ /**
42
+ * Returns whether it is initialized or not.
43
+ *
44
+ * @function isInitialized
45
+ * @return promise of boolean result
46
+ **/
47
+ export function isInitialized(): Promise<boolean> {
48
+ return ThetaClientReactNative.isInitialized();
25
49
  }
26
50
 
27
51
  /**
@@ -46,6 +70,17 @@ export function getPhotoCaptureBuilder(): PhotoCaptureBuilder {
46
70
  return new PhotoCaptureBuilder();
47
71
  }
48
72
 
73
+ /**
74
+ * Get TimeShiftCaptureBuilder for time-shift.
75
+ *
76
+ * @function getTimeShiftCaptureBuilder
77
+ * @return created TimeShiftCaptureBuilder
78
+ */
79
+ export function getTimeShiftCaptureBuilder(): TimeShiftCaptureBuilder {
80
+ ThetaClientReactNative.getTimeShiftCaptureBuilder();
81
+ return new TimeShiftCaptureBuilder();
82
+ }
83
+
49
84
  /**
50
85
  * Get PhotoCapture.Builder for capture video.
51
86
  *
@@ -154,6 +189,24 @@ export function setBluetoothDevice(uuid: string): Promise<String> {
154
189
  return ThetaClientReactNative.setBluetoothDevice(uuid);
155
190
  }
156
191
 
192
+ /**
193
+ * Returns the connected THETA model.
194
+ *
195
+ * @function getThetaModel
196
+ * @return promise of THETA model
197
+ **/
198
+ export function getThetaModel(): Promise<ThetaModel | undefined> {
199
+ return new Promise<ThetaModel | undefined>(async (resolve, reject) => {
200
+ await ThetaClientReactNative.getThetaModel()
201
+ .then((result?: string) => {
202
+ resolve((result as ThetaModel) ?? undefined);
203
+ })
204
+ .catch((error: any) => {
205
+ reject(error);
206
+ });
207
+ });
208
+ }
209
+
157
210
  /**
158
211
  * Get basic information about Theta.
159
212
  *
@@ -186,18 +239,21 @@ export function getThetaState(): Promise<ThetaState> {
186
239
  * @param {number} entryCount Desired number of entries to return. If
187
240
  * entryCount is more than the number of remaining files, just
188
241
  * return entries of actual remaining files.
242
+ * @param {StorageEnum} storage Desired storage. If omitted, return current storage. (RICOH THETA X Version 2.00.0 or later)
189
243
  * @return promise with a list of file information and number of totalEntries.
190
244
  * see [camera.listFiles](https://github.com/ricohapi/theta-api-specs/blob/main/theta-web-api-v2.1/commands/camera.list_files.md).
191
245
  */
192
246
  export function listFiles(
193
247
  fileTypeEnum: FileTypeEnum,
194
248
  startPosition: number = 0,
195
- entryCount: number
249
+ entryCount: number,
250
+ storage?: StorageEnum
196
251
  ): Promise<ThetaFiles> {
197
252
  return ThetaClientReactNative.listFiles(
198
253
  fileTypeEnum,
199
254
  startPosition,
200
- entryCount
255
+ entryCount,
256
+ storage
201
257
  );
202
258
  }
203
259
 
@@ -295,6 +351,7 @@ export function listAccessPoints(): Promise<AccessPoint[]> {
295
351
  * @param {AuthModeEnum} authMode Authentication mode.
296
352
  * @param {string} password Password. If authMode is "NONE", pass empty String.
297
353
  * @param {number} connectionPriority Connection priority 1 to 5.
354
+ * @param {Proxy} proxy Proxy information to be used for the access point.
298
355
  * @return promise of boolean result
299
356
  */
300
357
  export function setAccessPointDynamically(
@@ -302,14 +359,16 @@ export function setAccessPointDynamically(
302
359
  ssidStealth: boolean = false,
303
360
  authMode: AuthModeEnum = AuthModeEnum.NONE,
304
361
  password: string = '',
305
- connectionPriority: number = 1
362
+ connectionPriority: number = 1,
363
+ proxy?: Proxy
306
364
  ): Promise<boolean> {
307
365
  return ThetaClientReactNative.setAccessPointDynamically(
308
366
  ssid,
309
367
  ssidStealth,
310
368
  authMode,
311
369
  password,
312
- connectionPriority
370
+ connectionPriority,
371
+ proxy
313
372
  );
314
373
  }
315
374
 
@@ -325,6 +384,7 @@ export function setAccessPointDynamically(
325
384
  * @param {string} ipAddress IP address assigns to Theta.
326
385
  * @param {string} subnetMask Subnet mask.
327
386
  * @param {string} defaultGateway Default gateway.
387
+ * @param {Proxy} proxy Proxy information to be used for the access point.
328
388
  * @return promise of boolean result
329
389
  */
330
390
  export function setAccessPointStatically(
@@ -335,7 +395,8 @@ export function setAccessPointStatically(
335
395
  connectionPriority: number = 1,
336
396
  ipAddress: string,
337
397
  subnetMask: string,
338
- defaultGateway: string
398
+ defaultGateway: string,
399
+ proxy?: Proxy
339
400
  ): Promise<boolean> {
340
401
  return ThetaClientReactNative.setAccessPointStatically(
341
402
  ssid,
@@ -345,7 +406,8 @@ export function setAccessPointStatically(
345
406
  connectionPriority,
346
407
  ipAddress,
347
408
  subnetMask,
348
- defaultGateway
409
+ defaultGateway,
410
+ proxy
349
411
  );
350
412
  }
351
413
 
@@ -380,7 +442,9 @@ export function getMySetting(captureMode: CaptureModeEnum): Promise<Options> {
380
442
  * @param optionNames List of option names to acquire
381
443
  * @returns Options of my setting
382
444
  */
383
- export function getMySettingFromOldModel(optionNames: OptionNameEnum[]): Promise<Options> {
445
+ export function getMySettingFromOldModel(
446
+ optionNames: OptionNameEnum[]
447
+ ): Promise<Options> {
384
448
  return ThetaClientReactNative.getMySettingFromOldModel(optionNames);
385
449
  }
386
450
 
@@ -391,7 +455,10 @@ export function getMySettingFromOldModel(optionNames: OptionNameEnum[]): Promise
391
455
  * @param options registered to My Settings
392
456
  * @returns Promise of boolean result, always true
393
457
  */
394
- export function setMySetting(captureMode: CaptureModeEnum, options: Options): Promise<boolean> {
458
+ export function setMySetting(
459
+ captureMode: CaptureModeEnum,
460
+ options: Options
461
+ ): Promise<boolean> {
395
462
  return ThetaClientReactNative.setMySetting(captureMode, options);
396
463
  }
397
464
 
@@ -400,7 +467,9 @@ export function setMySetting(captureMode: CaptureModeEnum, options: Options): Pr
400
467
  * @param captureMode The target shooting mode
401
468
  * @returns Promise of boolean result, always true
402
469
  */
403
- export function deleteMySetting(captureMode: CaptureModeEnum): Promise<boolean> {
470
+ export function deleteMySetting(
471
+ captureMode: CaptureModeEnum
472
+ ): Promise<boolean> {
404
473
  return ThetaClientReactNative.deleteMySetting(captureMode);
405
474
  }
406
475
 
@@ -10,7 +10,7 @@ export const ChargingStateEnum = {
10
10
 
11
11
  /** type definition of ChargingStateEnum */
12
12
  export type ChargingStateEnum =
13
- typeof ChargingStateEnum[keyof typeof ChargingStateEnum];
13
+ (typeof ChargingStateEnum)[keyof typeof ChargingStateEnum];
14
14
 
15
15
  /** Capture Status constants */
16
16
  export const CaptureStatusEnum = {
@@ -34,7 +34,7 @@ export const CaptureStatusEnum = {
34
34
 
35
35
  /** type definition of CaptureStatusEnum */
36
36
  export type CaptureStatusEnum =
37
- typeof CaptureStatusEnum[keyof typeof CaptureStatusEnum];
37
+ (typeof CaptureStatusEnum)[keyof typeof CaptureStatusEnum];
38
38
 
39
39
  /** Shooting function status constants */
40
40
  export const ShootingFunctionEnum = {
@@ -48,7 +48,7 @@ export const ShootingFunctionEnum = {
48
48
 
49
49
  /** type definition of ShootingFunctionEnum */
50
50
  export type ShootingFunctionEnum =
51
- typeof ShootingFunctionEnum[keyof typeof ShootingFunctionEnum];
51
+ (typeof ShootingFunctionEnum)[keyof typeof ShootingFunctionEnum];
52
52
 
53
53
  /** Microphone option constants */
54
54
  export const MicrophoneOptionEnum = {
@@ -62,7 +62,7 @@ export const MicrophoneOptionEnum = {
62
62
 
63
63
  /** type definition of MicrophoneOptionEnum */
64
64
  export type MicrophoneOptionEnum =
65
- typeof MicrophoneOptionEnum[keyof typeof MicrophoneOptionEnum];
65
+ (typeof MicrophoneOptionEnum)[keyof typeof MicrophoneOptionEnum];
66
66
 
67
67
  /** Camera error constants */
68
68
  export const CameraErrorEnum = {
@@ -117,7 +117,7 @@ export const CameraErrorEnum = {
117
117
 
118
118
  /** type definition of CameraErrorEnum */
119
119
  export type CameraErrorEnum =
120
- typeof CameraErrorEnum[keyof typeof CameraErrorEnum];
120
+ (typeof CameraErrorEnum)[keyof typeof CameraErrorEnum];
121
121
 
122
122
  /** Mutable values representing Theta status. */
123
123
  export type ThetaState = {
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Timeout of HTTP call.
3
+ */
4
+ export type ThetaTimeout = {
5
+ /**
6
+ * Specifies a time period (in milliseconds) in
7
+ * which a client should establish a connection with a server.
8
+ */
9
+ connectTimeout: number;
10
+ /**
11
+ * Specifies a time period (in milliseconds) required to process an HTTP call:
12
+ * from sending a request to receiving first response bytes.
13
+ * To disable this timeout, set its value to 0.
14
+ */
15
+ requestTimeout: number;
16
+ /**
17
+ * Specifies a maximum time (in milliseconds) of inactivity between two data packets
18
+ * when exchanging data with a server.
19
+ */
20
+ socketTimeout: number;
21
+ };
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
  s.source_files = "ios/**/*.{h,m,mm}"
18
18
 
19
19
  s.dependency "React-Core"
20
- s.dependency "THETAClient", "1.1.0"
20
+ s.dependency "THETAClient", "1.3.0"
21
21
 
22
22
  # Don't install the dependencies when we run `pod install` in the old architecture.
23
23
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then