theta-client-react-native 1.12.1 → 1.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/android/build.gradle +2 -1
  2. package/android/src/main/AndroidManifest.xml +1 -3
  3. package/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +532 -33
  4. package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +230 -50
  5. package/ios/ConvertUtil.swift +561 -102
  6. package/ios/ThetaClientReactNative.m +31 -15
  7. package/ios/ThetaClientReactNative.swift +325 -118
  8. package/lib/commonjs/capture/capture.js +12 -1
  9. package/lib/commonjs/capture/capture.js.map +1 -1
  10. package/lib/commonjs/capture/continuous-capture.js +2 -1
  11. package/lib/commonjs/capture/continuous-capture.js.map +1 -1
  12. package/lib/commonjs/capture/index.js +11 -0
  13. package/lib/commonjs/capture/index.js.map +1 -1
  14. package/lib/commonjs/capture/time-shift-manual-capture.js +168 -0
  15. package/lib/commonjs/capture/time-shift-manual-capture.js.map +1 -0
  16. package/lib/commonjs/theta-repository/access-point.js +5 -1
  17. package/lib/commonjs/theta-repository/access-point.js.map +1 -1
  18. package/lib/commonjs/theta-repository/libs/convert-utils.js +22 -0
  19. package/lib/commonjs/theta-repository/libs/convert-utils.js.map +1 -0
  20. package/lib/commonjs/theta-repository/libs/index.js +11 -0
  21. package/lib/commonjs/theta-repository/libs/index.js.map +1 -1
  22. package/lib/commonjs/theta-repository/notify-controller.js +16 -7
  23. package/lib/commonjs/theta-repository/notify-controller.js.map +1 -1
  24. package/lib/commonjs/theta-repository/options/index.js +166 -12
  25. package/lib/commonjs/theta-repository/options/index.js.map +1 -1
  26. package/lib/commonjs/theta-repository/options/option-access-info.js +30 -0
  27. package/lib/commonjs/theta-repository/options/option-access-info.js.map +1 -0
  28. package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.js +2 -0
  29. package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.js.map +1 -1
  30. package/lib/commonjs/theta-repository/options/option-aperture.js +24 -0
  31. package/lib/commonjs/theta-repository/options/option-aperture.js.map +1 -0
  32. package/lib/commonjs/theta-repository/options/option-camera-control-source.js +2 -0
  33. package/lib/commonjs/theta-repository/options/option-camera-control-source.js.map +1 -1
  34. package/lib/commonjs/theta-repository/options/option-camera-lock-config.js +2 -0
  35. package/lib/commonjs/theta-repository/options/option-camera-lock-config.js.map +1 -0
  36. package/lib/commonjs/theta-repository/options/option-camera-lock.js +27 -0
  37. package/lib/commonjs/theta-repository/options/option-camera-lock.js.map +1 -0
  38. package/lib/commonjs/theta-repository/options/option-camera-power.js +3 -0
  39. package/lib/commonjs/theta-repository/options/option-camera-power.js.map +1 -1
  40. package/lib/commonjs/theta-repository/options/option-compass-direction-ref.js +30 -0
  41. package/lib/commonjs/theta-repository/options/option-compass-direction-ref.js.map +1 -0
  42. package/lib/commonjs/theta-repository/options/option-exposure-compensation.js +64 -0
  43. package/lib/commonjs/theta-repository/options/option-exposure-compensation.js.map +1 -0
  44. package/lib/commonjs/theta-repository/options/option-file-format.js +29 -1
  45. package/lib/commonjs/theta-repository/options/option-file-format.js.map +1 -1
  46. package/lib/commonjs/theta-repository/options/option-gps-tag-recording.js +18 -0
  47. package/lib/commonjs/theta-repository/options/option-gps-tag-recording.js.map +1 -0
  48. package/lib/commonjs/theta-repository/options/option-microphone-noise-reduction.js +23 -0
  49. package/lib/commonjs/theta-repository/options/option-microphone-noise-reduction.js.map +1 -0
  50. package/lib/commonjs/theta-repository/options/option-mobile-network-setting.js +32 -0
  51. package/lib/commonjs/theta-repository/options/option-mobile-network-setting.js.map +1 -0
  52. package/lib/commonjs/theta-repository/options/option-network-type.js +18 -2
  53. package/lib/commonjs/theta-repository/options/option-network-type.js.map +1 -1
  54. package/lib/commonjs/theta-repository/options/option-off-delay-usb.js +61 -0
  55. package/lib/commonjs/theta-repository/options/option-off-delay-usb.js.map +1 -0
  56. package/lib/commonjs/theta-repository/options/option-preview-format.js +12 -6
  57. package/lib/commonjs/theta-repository/options/option-preview-format.js.map +1 -1
  58. package/lib/commonjs/theta-repository/options/option-top-bottom-correction-rotation-support.js +6 -0
  59. package/lib/commonjs/theta-repository/options/option-top-bottom-correction-rotation-support.js.map +1 -0
  60. package/lib/commonjs/theta-repository/options/option-usb-connection.js +23 -0
  61. package/lib/commonjs/theta-repository/options/option-usb-connection.js.map +1 -0
  62. package/lib/commonjs/theta-repository/options/option-wlan-antenna-config.js +20 -0
  63. package/lib/commonjs/theta-repository/options/option-wlan-antenna-config.js.map +1 -0
  64. package/lib/commonjs/theta-repository/options/option-wlan-frequency-cl-mode.js +2 -0
  65. package/lib/commonjs/theta-repository/options/option-wlan-frequency-cl-mode.js.map +1 -0
  66. package/lib/commonjs/theta-repository/options/option-wlan-frequency.js +8 -2
  67. package/lib/commonjs/theta-repository/options/option-wlan-frequency.js.map +1 -1
  68. package/lib/commonjs/theta-repository/options/options.js +44 -62
  69. package/lib/commonjs/theta-repository/options/options.js.map +1 -1
  70. package/lib/commonjs/theta-repository/theta-files.js +5 -1
  71. package/lib/commonjs/theta-repository/theta-files.js.map +1 -1
  72. package/lib/commonjs/theta-repository/theta-info.js +3 -1
  73. package/lib/commonjs/theta-repository/theta-info.js.map +1 -1
  74. package/lib/commonjs/theta-repository/theta-repository.js +130 -18
  75. package/lib/commonjs/theta-repository/theta-repository.js.map +1 -1
  76. package/lib/commonjs/theta-repository/theta-state/capture-status.js +6 -1
  77. package/lib/commonjs/theta-repository/theta-state/capture-status.js.map +1 -1
  78. package/lib/module/capture/capture.js +12 -1
  79. package/lib/module/capture/capture.js.map +1 -1
  80. package/lib/module/capture/continuous-capture.js +2 -1
  81. package/lib/module/capture/continuous-capture.js.map +1 -1
  82. package/lib/module/capture/index.js +1 -0
  83. package/lib/module/capture/index.js.map +1 -1
  84. package/lib/module/capture/time-shift-manual-capture.js +160 -0
  85. package/lib/module/capture/time-shift-manual-capture.js.map +1 -0
  86. package/lib/module/theta-repository/access-point.js +5 -1
  87. package/lib/module/theta-repository/access-point.js.map +1 -1
  88. package/lib/module/theta-repository/libs/convert-utils.js +16 -0
  89. package/lib/module/theta-repository/libs/convert-utils.js.map +1 -0
  90. package/lib/module/theta-repository/libs/index.js +1 -0
  91. package/lib/module/theta-repository/libs/index.js.map +1 -1
  92. package/lib/module/theta-repository/notify-controller.js +16 -7
  93. package/lib/module/theta-repository/notify-controller.js.map +1 -1
  94. package/lib/module/theta-repository/options/index.js +16 -2
  95. package/lib/module/theta-repository/options/index.js.map +1 -1
  96. package/lib/module/theta-repository/options/option-access-info.js +24 -0
  97. package/lib/module/theta-repository/options/option-access-info.js.map +1 -0
  98. package/lib/module/theta-repository/options/option-ai-auto-thumbnail.js +2 -0
  99. package/lib/module/theta-repository/options/option-ai-auto-thumbnail.js.map +1 -1
  100. package/lib/module/theta-repository/options/option-aperture.js +18 -0
  101. package/lib/module/theta-repository/options/option-aperture.js.map +1 -0
  102. package/lib/module/theta-repository/options/option-camera-control-source.js +2 -0
  103. package/lib/module/theta-repository/options/option-camera-control-source.js.map +1 -1
  104. package/lib/module/theta-repository/options/option-camera-lock-config.js +2 -0
  105. package/lib/module/theta-repository/options/option-camera-lock-config.js.map +1 -0
  106. package/lib/module/theta-repository/options/option-camera-lock.js +21 -0
  107. package/lib/module/theta-repository/options/option-camera-lock.js.map +1 -0
  108. package/lib/module/theta-repository/options/option-camera-power.js +3 -0
  109. package/lib/module/theta-repository/options/option-camera-power.js.map +1 -1
  110. package/lib/module/theta-repository/options/option-compass-direction-ref.js +24 -0
  111. package/lib/module/theta-repository/options/option-compass-direction-ref.js.map +1 -0
  112. package/lib/module/theta-repository/options/option-exposure-compensation.js +58 -0
  113. package/lib/module/theta-repository/options/option-exposure-compensation.js.map +1 -0
  114. package/lib/module/theta-repository/options/option-file-format.js +29 -1
  115. package/lib/module/theta-repository/options/option-file-format.js.map +1 -1
  116. package/lib/module/theta-repository/options/option-gps-tag-recording.js +12 -0
  117. package/lib/module/theta-repository/options/option-gps-tag-recording.js.map +1 -0
  118. package/lib/module/theta-repository/options/option-microphone-noise-reduction.js +17 -0
  119. package/lib/module/theta-repository/options/option-microphone-noise-reduction.js.map +1 -0
  120. package/lib/module/theta-repository/options/option-mobile-network-setting.js +26 -0
  121. package/lib/module/theta-repository/options/option-mobile-network-setting.js.map +1 -0
  122. package/lib/module/theta-repository/options/option-network-type.js +18 -2
  123. package/lib/module/theta-repository/options/option-network-type.js.map +1 -1
  124. package/lib/module/theta-repository/options/option-off-delay-usb.js +54 -0
  125. package/lib/module/theta-repository/options/option-off-delay-usb.js.map +1 -0
  126. package/lib/module/theta-repository/options/option-preview-format.js +12 -6
  127. package/lib/module/theta-repository/options/option-preview-format.js.map +1 -1
  128. package/lib/module/theta-repository/options/option-top-bottom-correction-rotation-support.js +2 -0
  129. package/lib/module/theta-repository/options/option-top-bottom-correction-rotation-support.js.map +1 -0
  130. package/lib/module/theta-repository/options/option-usb-connection.js +17 -0
  131. package/lib/module/theta-repository/options/option-usb-connection.js.map +1 -0
  132. package/lib/module/theta-repository/options/option-wlan-antenna-config.js +14 -0
  133. package/lib/module/theta-repository/options/option-wlan-antenna-config.js.map +1 -0
  134. package/lib/module/theta-repository/options/option-wlan-frequency-cl-mode.js +2 -0
  135. package/lib/module/theta-repository/options/option-wlan-frequency-cl-mode.js.map +1 -0
  136. package/lib/module/theta-repository/options/option-wlan-frequency.js +8 -2
  137. package/lib/module/theta-repository/options/option-wlan-frequency.js.map +1 -1
  138. package/lib/module/theta-repository/options/options.js +43 -61
  139. package/lib/module/theta-repository/options/options.js.map +1 -1
  140. package/lib/module/theta-repository/theta-files.js +5 -1
  141. package/lib/module/theta-repository/theta-files.js.map +1 -1
  142. package/lib/module/theta-repository/theta-info.js +3 -1
  143. package/lib/module/theta-repository/theta-info.js.map +1 -1
  144. package/lib/module/theta-repository/theta-repository.js +128 -20
  145. package/lib/module/theta-repository/theta-repository.js.map +1 -1
  146. package/lib/module/theta-repository/theta-state/capture-status.js +6 -1
  147. package/lib/module/theta-repository/theta-state/capture-status.js.map +1 -1
  148. package/lib/typescript/capture/capture.d.ts +11 -0
  149. package/lib/typescript/capture/capture.d.ts.map +1 -1
  150. package/lib/typescript/capture/continuous-capture.d.ts.map +1 -1
  151. package/lib/typescript/capture/index.d.ts +1 -0
  152. package/lib/typescript/capture/index.d.ts.map +1 -1
  153. package/lib/typescript/capture/time-shift-manual-capture.d.ts +70 -0
  154. package/lib/typescript/capture/time-shift-manual-capture.d.ts.map +1 -0
  155. package/lib/typescript/theta-repository/access-point.d.ts +11 -3
  156. package/lib/typescript/theta-repository/access-point.d.ts.map +1 -1
  157. package/lib/typescript/theta-repository/libs/convert-utils.d.ts +3 -0
  158. package/lib/typescript/theta-repository/libs/convert-utils.d.ts.map +1 -0
  159. package/lib/typescript/theta-repository/libs/index.d.ts +1 -0
  160. package/lib/typescript/theta-repository/libs/index.d.ts.map +1 -1
  161. package/lib/typescript/theta-repository/notify-controller.d.ts +3 -1
  162. package/lib/typescript/theta-repository/notify-controller.d.ts.map +1 -1
  163. package/lib/typescript/theta-repository/options/index.d.ts +16 -2
  164. package/lib/typescript/theta-repository/options/index.d.ts.map +1 -1
  165. package/lib/typescript/theta-repository/options/option-access-info.d.ts +91 -0
  166. package/lib/typescript/theta-repository/options/option-access-info.d.ts.map +1 -0
  167. package/lib/typescript/theta-repository/options/option-ai-auto-thumbnail.d.ts +2 -0
  168. package/lib/typescript/theta-repository/options/option-ai-auto-thumbnail.d.ts.map +1 -1
  169. package/lib/typescript/theta-repository/options/option-aperture.d.ts +18 -0
  170. package/lib/typescript/theta-repository/options/option-aperture.d.ts.map +1 -0
  171. package/lib/typescript/theta-repository/options/option-auto-bracket.d.ts +3 -1
  172. package/lib/typescript/theta-repository/options/option-auto-bracket.d.ts.map +1 -1
  173. package/lib/typescript/theta-repository/options/option-camera-control-source.d.ts +2 -0
  174. package/lib/typescript/theta-repository/options/option-camera-control-source.d.ts.map +1 -1
  175. package/lib/typescript/theta-repository/options/option-camera-lock-config.d.ts +26 -0
  176. package/lib/typescript/theta-repository/options/option-camera-lock-config.d.ts.map +1 -0
  177. package/lib/typescript/theta-repository/options/option-camera-lock.d.ts +21 -0
  178. package/lib/typescript/theta-repository/options/option-camera-lock.d.ts.map +1 -0
  179. package/lib/typescript/theta-repository/options/option-camera-power.d.ts +3 -0
  180. package/lib/typescript/theta-repository/options/option-camera-power.d.ts.map +1 -1
  181. package/lib/typescript/theta-repository/options/option-compass-direction-ref.d.ts +24 -0
  182. package/lib/typescript/theta-repository/options/option-compass-direction-ref.d.ts.map +1 -0
  183. package/lib/typescript/theta-repository/options/option-ethernet-config.d.ts +8 -4
  184. package/lib/typescript/theta-repository/options/option-ethernet-config.d.ts.map +1 -1
  185. package/lib/typescript/theta-repository/options/option-exposure-compensation.d.ts +58 -0
  186. package/lib/typescript/theta-repository/options/option-exposure-compensation.d.ts.map +1 -0
  187. package/lib/typescript/theta-repository/options/option-file-format.d.ts +42 -0
  188. package/lib/typescript/theta-repository/options/option-file-format.d.ts.map +1 -1
  189. package/lib/typescript/theta-repository/options/option-gps-tag-recording.d.ts +12 -0
  190. package/lib/typescript/theta-repository/options/option-gps-tag-recording.d.ts.map +1 -0
  191. package/lib/typescript/theta-repository/options/option-microphone-noise-reduction.d.ts +17 -0
  192. package/lib/typescript/theta-repository/options/option-microphone-noise-reduction.d.ts.map +1 -0
  193. package/lib/typescript/theta-repository/options/option-mobile-network-setting.d.ts +34 -0
  194. package/lib/typescript/theta-repository/options/option-mobile-network-setting.d.ts.map +1 -0
  195. package/lib/typescript/theta-repository/options/option-network-type.d.ts +17 -1
  196. package/lib/typescript/theta-repository/options/option-network-type.d.ts.map +1 -1
  197. package/lib/typescript/theta-repository/options/option-off-delay-usb.d.ts +36 -0
  198. package/lib/typescript/theta-repository/options/option-off-delay-usb.d.ts.map +1 -0
  199. package/lib/typescript/theta-repository/options/option-preview-format.d.ts +12 -6
  200. package/lib/typescript/theta-repository/options/option-preview-format.d.ts.map +1 -1
  201. package/lib/typescript/theta-repository/options/option-top-bottom-correction-rotation-support.d.ts +19 -0
  202. package/lib/typescript/theta-repository/options/option-top-bottom-correction-rotation-support.d.ts.map +1 -0
  203. package/lib/typescript/theta-repository/options/option-usb-connection.d.ts +17 -0
  204. package/lib/typescript/theta-repository/options/option-usb-connection.d.ts.map +1 -0
  205. package/lib/typescript/theta-repository/options/option-wlan-antenna-config.d.ts +14 -0
  206. package/lib/typescript/theta-repository/options/option-wlan-antenna-config.d.ts.map +1 -0
  207. package/lib/typescript/theta-repository/options/option-wlan-frequency-cl-mode.d.ts +20 -0
  208. package/lib/typescript/theta-repository/options/option-wlan-frequency-cl-mode.d.ts.map +1 -0
  209. package/lib/typescript/theta-repository/options/option-wlan-frequency.d.ts +7 -1
  210. package/lib/typescript/theta-repository/options/option-wlan-frequency.d.ts.map +1 -1
  211. package/lib/typescript/theta-repository/options/options.d.ts +131 -63
  212. package/lib/typescript/theta-repository/options/options.d.ts.map +1 -1
  213. package/lib/typescript/theta-repository/theta-files.d.ts +4 -0
  214. package/lib/typescript/theta-repository/theta-files.d.ts.map +1 -1
  215. package/lib/typescript/theta-repository/theta-info.d.ts +9 -1
  216. package/lib/typescript/theta-repository/theta-info.d.ts.map +1 -1
  217. package/lib/typescript/theta-repository/theta-repository.d.ts +65 -14
  218. package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -1
  219. package/lib/typescript/theta-repository/theta-state/capture-status.d.ts +5 -0
  220. package/lib/typescript/theta-repository/theta-state/capture-status.d.ts.map +1 -1
  221. package/package.json +1 -1
  222. package/src/capture/capture.ts +11 -0
  223. package/src/capture/continuous-capture.ts +2 -4
  224. package/src/capture/index.ts +1 -0
  225. package/src/capture/time-shift-manual-capture.ts +203 -0
  226. package/src/theta-repository/access-point.ts +11 -3
  227. package/src/theta-repository/libs/convert-utils.ts +27 -0
  228. package/src/theta-repository/libs/index.ts +1 -0
  229. package/src/theta-repository/notify-controller.ts +18 -8
  230. package/src/theta-repository/options/index.ts +16 -2
  231. package/src/theta-repository/options/option-access-info.ts +108 -0
  232. package/src/theta-repository/options/option-ai-auto-thumbnail.ts +2 -0
  233. package/src/theta-repository/options/option-aperture.ts +18 -0
  234. package/src/theta-repository/options/option-auto-bracket.ts +3 -7
  235. package/src/theta-repository/options/option-camera-control-source.ts +3 -0
  236. package/src/theta-repository/options/option-camera-lock-config.ts +25 -0
  237. package/src/theta-repository/options/option-camera-lock.ts +22 -0
  238. package/src/theta-repository/options/option-camera-power.ts +3 -0
  239. package/src/theta-repository/options/option-compass-direction-ref.ts +25 -0
  240. package/src/theta-repository/options/option-ethernet-config.ts +8 -4
  241. package/src/theta-repository/options/option-exposure-compensation.ts +59 -0
  242. package/src/theta-repository/options/option-file-format.ts +29 -0
  243. package/src/theta-repository/options/option-gps-tag-recording.ts +13 -0
  244. package/src/theta-repository/options/option-microphone-noise-reduction.ts +18 -0
  245. package/src/theta-repository/options/option-mobile-network-setting.ts +38 -0
  246. package/src/theta-repository/options/option-network-type.ts +17 -1
  247. package/src/theta-repository/options/option-off-delay-usb.ts +57 -0
  248. package/src/theta-repository/options/option-preview-format.ts +12 -6
  249. package/src/theta-repository/options/option-top-bottom-correction-rotation-support.ts +19 -0
  250. package/src/theta-repository/options/option-usb-connection.ts +18 -0
  251. package/src/theta-repository/options/option-wlan-antenna-config.ts +15 -0
  252. package/src/theta-repository/options/option-wlan-frequency-cl-mode.ts +19 -0
  253. package/src/theta-repository/options/option-wlan-frequency.ts +7 -1
  254. package/src/theta-repository/options/options.ts +133 -71
  255. package/src/theta-repository/theta-files.ts +4 -0
  256. package/src/theta-repository/theta-info.ts +9 -1
  257. package/src/theta-repository/theta-repository.ts +133 -30
  258. package/src/theta-repository/theta-state/capture-status.ts +5 -0
  259. package/theta-client-react-native.podspec +1 -1
@@ -1,4 +1,4 @@
1
- import { AccessPoint, AuthModeEnum } from './access-point';
1
+ import type { AccessPoint, AuthModeEnum } from './access-point';
2
2
  import type { FileTypeEnum, StorageEnum, ThetaFiles } from './theta-files';
3
3
  import type { ThetaState } from './theta-state';
4
4
  import type { ThetaInfo, ThetaModel } from './theta-info';
@@ -22,6 +22,7 @@ import {
22
22
  PhotoCaptureBuilder,
23
23
  VideoCaptureBuilder,
24
24
  TimeShiftCaptureBuilder,
25
+ TimeShiftManualCaptureBuilder,
25
26
  LimitlessIntervalCaptureBuilder,
26
27
  ShotCountSpecifiedIntervalCaptureBuilder,
27
28
  CompositeIntervalCaptureBuilder,
@@ -33,9 +34,36 @@ import type { ThetaConfig } from './theta-config';
33
34
  import type { ThetaTimeout } from './theta-timeout';
34
35
  import { NotifyController } from './notify-controller';
35
36
  import { EventWebSocket } from './event-websocket';
36
- import { convertVideoFormatsImpl } from './libs';
37
+ import { convertOptions, convertVideoFormatsImpl } from './libs';
37
38
  const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
38
39
 
40
+ const NOTIFY_API_LOG = 'API-LOG';
41
+ let apiLogListener: ((message: string) => void) | undefined;
42
+
43
+ async function setNotifyApiLogListener(listener?: (message: string) => void) {
44
+ if (listener) {
45
+ NotifyController.instance.addNotify(NOTIFY_API_LOG, (event) => {
46
+ listener(event.params.message);
47
+ });
48
+ } else {
49
+ NotifyController.instance.removeNotify(NOTIFY_API_LOG);
50
+ }
51
+ await ThetaClientReactNative.setApiLogListener(listener != null);
52
+ }
53
+
54
+ /**
55
+ * Set up a log listener for THETA API calls
56
+ *
57
+ * @param listener Called when there is a THETA API request and response; if undefined, unregister.
58
+ */
59
+ export async function setApiLogListener(listener?: (message: string) => void) {
60
+ if (!NotifyController.instance.isInit()) {
61
+ NotifyController.instance.init();
62
+ }
63
+ apiLogListener = listener;
64
+ await setNotifyApiLogListener(apiLogListener);
65
+ }
66
+
39
67
  /**
40
68
  * initialize theta client sdk
41
69
  *
@@ -45,12 +73,15 @@ const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
45
73
  * @param {ThetaTimeout} timeout Timeout of HTTP call.
46
74
  * @return promise of boolean result
47
75
  **/
48
- export function initialize(
76
+ export async function initialize(
49
77
  endPoint: string = 'http://192.168.1.1',
50
78
  config?: ThetaConfig,
51
79
  timeout?: ThetaTimeout
52
80
  ): Promise<boolean> {
53
81
  NotifyController.instance.init();
82
+ if (apiLogListener) {
83
+ await setNotifyApiLogListener(apiLogListener);
84
+ }
54
85
 
55
86
  return ThetaClientReactNative.initialize(endPoint, config, timeout);
56
87
  }
@@ -65,6 +96,19 @@ export function isInitialized(): Promise<boolean> {
65
96
  return ThetaClientReactNative.isInitialized();
66
97
  }
67
98
 
99
+ /**
100
+ * Turn off/on (reboot) the camera.
101
+ * Supported models are THETA A1 only.
102
+ *
103
+ * Error when connecting in CL mode for Japan-bound models only
104
+ *
105
+ * @function reboot
106
+ * @return promise
107
+ */
108
+ export function reboot(): Promise<void> {
109
+ return ThetaClientReactNative.reboot();
110
+ }
111
+
68
112
  /**
69
113
  * Reset all device settings and capture settings.
70
114
  * After reset, the camera will be restarted.
@@ -96,6 +140,16 @@ export function getTimeShiftCaptureBuilder(): TimeShiftCaptureBuilder {
96
140
  return new TimeShiftCaptureBuilder();
97
141
  }
98
142
 
143
+ /**
144
+ * Get TimeShiftManualCaptureBuilder for manual time-shift.
145
+ *
146
+ * @function getTimeShiftManualCaptureBuilder
147
+ * @return created TimeShiftManualCaptureBuilder
148
+ */
149
+ export function getTimeShiftManualCaptureBuilder(): TimeShiftManualCaptureBuilder {
150
+ return new TimeShiftManualCaptureBuilder();
151
+ }
152
+
99
153
  /**
100
154
  * Get VideoCapture.Builder for capture video.
101
155
  *
@@ -415,8 +469,13 @@ export function deleteAllVideoFiles(): Promise<boolean> {
415
469
  * @param {OptionNameEnum[]} optionNames List of OptionNameEnum.
416
470
  * @return promise of Options acquired
417
471
  */
418
- export function getOptions(optionNames: OptionNameEnum[]): Promise<Options> {
419
- return ThetaClientReactNative.getOptions(optionNames);
472
+ export async function getOptions(
473
+ optionNames: OptionNameEnum[]
474
+ ): Promise<Options> {
475
+ const response = await ThetaClientReactNative.getOptions(optionNames);
476
+ const { options, json } = response;
477
+ const result = convertOptions(options, json);
478
+ return result;
420
479
  }
421
480
 
422
481
  /**
@@ -456,29 +515,34 @@ export function listAccessPoints(): Promise<AccessPoint[]> {
456
515
  *
457
516
  * @function setAccessPointDynamically
458
517
  * @param {string} ssid SSID of the access point.
459
- * @param {boolean} ssidStealth true if SSID stealth is enabled.
460
- * @param {AuthModeEnum} authMode Authentication mode.
461
- * @param {string} password Password. If authMode is "NONE", pass empty String.
462
- * @param {number} connectionPriority Connection priority 1 to 5.
463
- * @param {Proxy} proxy Proxy information to be used for the access point.
518
+ * @param {} params - Optional parameters for additional configuration.
519
+ * @param {boolean} params.ssidStealth true if SSID stealth is enabled.
520
+ * @param {AuthModeEnum} params.authMode Authentication mode.
521
+ * @param {string} params.password Password. Not set if authMode is “NONE”.
522
+ * @param {number} params.connectionPriority Connection priority 1 to 5.
523
+ * @param {Proxy} params.proxy Proxy information to be used for the access point.
464
524
  * @return promise of boolean result
465
525
  */
466
526
  export function setAccessPointDynamically(
467
527
  ssid: string,
468
- ssidStealth: boolean = false,
469
- authMode: AuthModeEnum = AuthModeEnum.NONE,
470
- password: string = '',
471
- connectionPriority: number = 1,
472
- proxy?: Proxy
528
+ params?: {
529
+ ssidStealth?: boolean;
530
+ authMode?: AuthModeEnum;
531
+ password?: string;
532
+ connectionPriority?: number;
533
+ proxy?: Proxy;
534
+ }
473
535
  ): Promise<boolean> {
474
- return ThetaClientReactNative.setAccessPointDynamically(
536
+ const { ssidStealth, authMode, password, connectionPriority, proxy } =
537
+ params ?? {};
538
+ return ThetaClientReactNative.setAccessPointDynamically({
475
539
  ssid,
476
540
  ssidStealth,
477
541
  authMode,
478
542
  password,
479
543
  connectionPriority,
480
- proxy
481
- );
544
+ proxy,
545
+ });
482
546
  }
483
547
 
484
548
  /**
@@ -486,28 +550,44 @@ export function setAccessPointDynamically(
486
550
  *
487
551
  * @function setAccessPointStatically
488
552
  * @param {string} ssid SSID of the access point.
489
- * @param {boolean} ssidStealth True if SSID stealth is enabled.
490
- * @param {AuthModeEnum} authMode Authentication mode.
491
- * @param {string} password Password. If authMode is "NONE", pass empty String.
492
- * @param {number} connectionPriority Connection priority 1 to 5.
493
553
  * @param {string} ipAddress IP address assigns to Theta.
494
554
  * @param {string} subnetMask Subnet mask.
495
555
  * @param {string} defaultGateway Default gateway.
496
- * @param {Proxy} proxy Proxy information to be used for the access point.
556
+ * @param {} params - Optional parameters for additional configuration.
557
+ * @param {boolean} params.ssidStealth True if SSID stealth is enabled.
558
+ * @param {AuthModeEnum} params.authMode Authentication mode.
559
+ * @param {string} params.password Password. Not set if authMode is “NONE”.
560
+ * @param {number} params.connectionPriority Connection priority 1 to 5.
561
+ * @param {string} params.dns1 Primary DNS server.
562
+ * @param {string} params.dns2 Secondary DNS server.
563
+ * @param {Proxy} params.proxy Proxy information to be used for the access point.
497
564
  * @return promise of boolean result
498
565
  */
499
566
  export function setAccessPointStatically(
500
567
  ssid: string,
501
- ssidStealth: boolean = false,
502
- authMode: AuthModeEnum = AuthModeEnum.NONE,
503
- password: string = '',
504
- connectionPriority: number = 1,
505
568
  ipAddress: string,
506
569
  subnetMask: string,
507
570
  defaultGateway: string,
508
- proxy?: Proxy
571
+ params?: {
572
+ ssidStealth?: boolean;
573
+ authMode?: AuthModeEnum;
574
+ password?: string;
575
+ connectionPriority?: number;
576
+ dns1?: string;
577
+ dns2?: string;
578
+ proxy?: Proxy;
579
+ }
509
580
  ): Promise<boolean> {
510
- return ThetaClientReactNative.setAccessPointStatically(
581
+ const {
582
+ ssidStealth,
583
+ authMode,
584
+ password,
585
+ connectionPriority,
586
+ dns1,
587
+ dns2,
588
+ proxy,
589
+ } = params ?? {};
590
+ return ThetaClientReactNative.setAccessPointStatically({
511
591
  ssid,
512
592
  ssidStealth,
513
593
  authMode,
@@ -516,7 +596,30 @@ export function setAccessPointStatically(
516
596
  ipAddress,
517
597
  subnetMask,
518
598
  defaultGateway,
519
- proxy
599
+ dns1,
600
+ dns2,
601
+ proxy,
602
+ });
603
+ }
604
+
605
+ /**
606
+ * Updates the connection priority of the access point.
607
+ *
608
+ * @function setAccessPointConnectionPriority
609
+ * @param {string} ssid SSID of the access point.
610
+ * @param {number} connectionPriority Connection priority 1 to 5.
611
+ * @param {boolean} ssidStealth True if SSID stealth is enabled.
612
+ * @return promise of boolean result
613
+ */
614
+ export function setAccessPointConnectionPriority(
615
+ ssid: string,
616
+ connectionPriority: number,
617
+ ssidStealth: boolean
618
+ ): Promise<boolean> {
619
+ return ThetaClientReactNative.setAccessPointConnectionPriority(
620
+ ssid,
621
+ connectionPriority,
622
+ ssidStealth
520
623
  );
521
624
  }
522
625
 
@@ -20,6 +20,11 @@ export const CaptureStatusEnum = {
20
20
  RETROSPECTIVE_IMAGE_RECORDING: 'RETROSPECTIVE_IMAGE_RECORDING',
21
21
  /** Performing burst shooting */
22
22
  BURST_SHOOTING: 'BURST_SHOOTING',
23
+ /**
24
+ * In the case of time-lag shooting by manual lens,
25
+ * set while waiting for the second shot to be taken after the first shot is completed.
26
+ */
27
+ TIME_SHIFT_SHOOTING_IDLE: 'TIME_SHIFT_SHOOTING_IDLE',
23
28
  } as const;
24
29
 
25
30
  /** type definition of CaptureStatusEnum */
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
19
  s.dependency "React-Core"
20
- s.dependency "THETAClient", "1.12.1"
20
+ s.dependency "THETAClient", "1.13.1"
21
21
 
22
22
  # Don't install the dependencies when we run `pod install` in the old architecture.
23
23
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then