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.
Files changed (119) hide show
  1. package/README.md +6 -1
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +34 -0
  4. package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +311 -9
  5. package/ios/ThetaClientReactNative.mm +528 -43
  6. package/lib/commonjs/capture/capture.js +118 -0
  7. package/lib/commonjs/capture/capture.js.map +1 -0
  8. package/lib/commonjs/capture/index.js +39 -0
  9. package/lib/commonjs/capture/index.js.map +1 -0
  10. package/lib/commonjs/capture/photo-capture.js +64 -0
  11. package/lib/commonjs/capture/photo-capture.js.map +1 -0
  12. package/lib/commonjs/capture/video-capture.js +71 -0
  13. package/lib/commonjs/capture/video-capture.js.map +1 -0
  14. package/lib/commonjs/index.js +40 -1041
  15. package/lib/commonjs/index.js.map +1 -1
  16. package/lib/commonjs/theta-repository/access-point.js +23 -0
  17. package/lib/commonjs/theta-repository/access-point.js.map +1 -0
  18. package/lib/commonjs/theta-repository/index.js +72 -0
  19. package/lib/commonjs/theta-repository/index.js.map +1 -0
  20. package/lib/commonjs/theta-repository/options/index.js +28 -0
  21. package/lib/commonjs/theta-repository/options/index.js.map +1 -0
  22. package/lib/commonjs/theta-repository/options/option-white-balance-auto-strength.js +25 -0
  23. package/lib/commonjs/theta-repository/options/option-white-balance-auto-strength.js.map +1 -0
  24. package/lib/commonjs/theta-repository/options/options.js +462 -0
  25. package/lib/commonjs/theta-repository/options/options.js.map +1 -0
  26. package/lib/commonjs/theta-repository/theta-files.js +23 -0
  27. package/lib/commonjs/theta-repository/theta-files.js.map +1 -0
  28. package/lib/commonjs/theta-repository/theta-info.js +2 -0
  29. package/lib/commonjs/theta-repository/theta-info.js.map +1 -0
  30. package/lib/commonjs/theta-repository/theta-meta.js +2 -0
  31. package/lib/commonjs/theta-repository/theta-meta.js.map +1 -0
  32. package/lib/commonjs/theta-repository/theta-plugin.js +2 -0
  33. package/lib/commonjs/theta-repository/theta-plugin.js.map +1 -0
  34. package/lib/commonjs/theta-repository/theta-repository.js +479 -0
  35. package/lib/commonjs/theta-repository/theta-repository.js.map +1 -0
  36. package/lib/commonjs/theta-repository/theta-state.js +120 -0
  37. package/lib/commonjs/theta-repository/theta-state.js.map +1 -0
  38. package/lib/module/capture/capture.js +111 -0
  39. package/lib/module/capture/capture.js.map +1 -0
  40. package/lib/module/capture/index.js +4 -0
  41. package/lib/module/capture/index.js.map +1 -0
  42. package/lib/module/capture/photo-capture.js +56 -0
  43. package/lib/module/capture/photo-capture.js.map +1 -0
  44. package/lib/module/capture/video-capture.js +63 -0
  45. package/lib/module/capture/video-capture.js.map +1 -0
  46. package/lib/module/index.js +3 -1009
  47. package/lib/module/index.js.map +1 -1
  48. package/lib/module/theta-repository/access-point.js +16 -0
  49. package/lib/module/theta-repository/access-point.js.map +1 -0
  50. package/lib/module/theta-repository/index.js +7 -0
  51. package/lib/module/theta-repository/index.js.map +1 -0
  52. package/lib/module/theta-repository/options/index.js +3 -0
  53. package/lib/module/theta-repository/options/index.js.map +1 -0
  54. package/lib/module/theta-repository/options/option-white-balance-auto-strength.js +18 -0
  55. package/lib/module/theta-repository/options/option-white-balance-auto-strength.js.map +1 -0
  56. package/lib/module/theta-repository/options/options.js +454 -0
  57. package/lib/module/theta-repository/options/options.js.map +1 -0
  58. package/lib/module/theta-repository/theta-files.js +16 -0
  59. package/lib/module/theta-repository/theta-files.js.map +1 -0
  60. package/lib/module/theta-repository/theta-info.js +2 -0
  61. package/lib/module/theta-repository/theta-info.js.map +1 -0
  62. package/lib/module/theta-repository/theta-meta.js +2 -0
  63. package/lib/module/theta-repository/theta-meta.js.map +1 -0
  64. package/lib/module/theta-repository/theta-plugin.js +2 -0
  65. package/lib/module/theta-repository/theta-plugin.js.map +1 -0
  66. package/lib/module/theta-repository/theta-repository.js +437 -0
  67. package/lib/module/theta-repository/theta-repository.js.map +1 -0
  68. package/lib/module/theta-repository/theta-state.js +113 -0
  69. package/lib/module/theta-repository/theta-state.js.map +1 -0
  70. package/lib/typescript/capture/capture.d.ts +71 -0
  71. package/lib/typescript/capture/capture.d.ts.map +1 -0
  72. package/lib/typescript/capture/index.d.ts +4 -0
  73. package/lib/typescript/capture/index.d.ts.map +1 -0
  74. package/lib/typescript/capture/photo-capture.d.ts +38 -0
  75. package/lib/typescript/capture/photo-capture.d.ts.map +1 -0
  76. package/lib/typescript/capture/video-capture.d.ts +43 -0
  77. package/lib/typescript/capture/video-capture.d.ts.map +1 -0
  78. package/lib/typescript/index.d.ts +3 -972
  79. package/lib/typescript/index.d.ts.map +1 -1
  80. package/lib/typescript/theta-repository/access-point.d.ts +33 -0
  81. package/lib/typescript/theta-repository/access-point.d.ts.map +1 -0
  82. package/lib/typescript/theta-repository/index.d.ts +7 -0
  83. package/lib/typescript/theta-repository/index.d.ts.map +1 -0
  84. package/lib/typescript/theta-repository/options/index.d.ts +3 -0
  85. package/lib/typescript/theta-repository/options/index.d.ts.map +1 -0
  86. package/lib/typescript/theta-repository/options/option-white-balance-auto-strength.d.ts +18 -0
  87. package/lib/typescript/theta-repository/options/option-white-balance-auto-strength.d.ts.map +1 -0
  88. package/lib/typescript/theta-repository/options/options.d.ts +499 -0
  89. package/lib/typescript/theta-repository/options/options.d.ts.map +1 -0
  90. package/lib/typescript/theta-repository/theta-files.d.ts +32 -0
  91. package/lib/typescript/theta-repository/theta-files.d.ts.map +1 -0
  92. package/lib/typescript/theta-repository/theta-info.d.ts +34 -0
  93. package/lib/typescript/theta-repository/theta-info.d.ts.map +1 -0
  94. package/lib/typescript/theta-repository/theta-meta.d.ts +38 -0
  95. package/lib/typescript/theta-repository/theta-meta.d.ts.map +1 -0
  96. package/lib/typescript/theta-repository/theta-plugin.d.ts +26 -0
  97. package/lib/typescript/theta-repository/theta-plugin.d.ts.map +1 -0
  98. package/lib/typescript/theta-repository/theta-repository.d.ts +312 -0
  99. package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -0
  100. package/lib/typescript/theta-repository/theta-state.d.ts +150 -0
  101. package/lib/typescript/theta-repository/theta-state.d.ts.map +1 -0
  102. package/package.json +1 -1
  103. package/src/capture/capture.ts +124 -0
  104. package/src/capture/index.ts +3 -0
  105. package/src/capture/photo-capture.ts +62 -0
  106. package/src/capture/video-capture.ts +69 -0
  107. package/src/index.tsx +3 -1243
  108. package/src/theta-repository/access-point.ts +34 -0
  109. package/src/theta-repository/index.ts +6 -0
  110. package/src/theta-repository/options/index.ts +2 -0
  111. package/src/theta-repository/options/option-white-balance-auto-strength.ts +19 -0
  112. package/src/theta-repository/options/options.ts +554 -0
  113. package/src/theta-repository/theta-files.ts +34 -0
  114. package/src/theta-repository/theta-info.ts +35 -0
  115. package/src/theta-repository/theta-meta.ts +39 -0
  116. package/src/theta-repository/theta-plugin.ts +25 -0
  117. package/src/theta-repository/theta-repository.ts +476 -0
  118. package/src/theta-repository/theta-state.ts +164 -0
  119. package/theta-client-react-native.podspec +1 -1
@@ -0,0 +1,38 @@
1
+ import { CaptureBuilder } from './capture';
2
+ import type { FilterEnum, PhotoFileFormatEnum } from '../theta-repository/options';
3
+ /**
4
+ * PhotoCapture class
5
+ */
6
+ export declare class PhotoCapture {
7
+ /**
8
+ * @return promise of token file url
9
+ */
10
+ takePicture(): Promise<string>;
11
+ }
12
+ /**
13
+ * PhotoCaptureBaseBuilder class
14
+ */
15
+ export declare class PhotoCaptureBuilder extends CaptureBuilder<PhotoCaptureBuilder> {
16
+ /** construct PhotoCaptureBuilder instance */
17
+ constructor();
18
+ /**
19
+ * Set photo file format.
20
+ * @param {PhotoFileFormatEnum} fileFormat Photo file format to set
21
+ * @return PhotoCaptureBuilder
22
+ */
23
+ setFileFormat(fileFormat: PhotoFileFormatEnum): PhotoCaptureBuilder;
24
+ /**
25
+ * Set image processing filter.
26
+ * @param {FilterEnum} filter Image processing filter to set
27
+ * @return PhotoCaptureBuilder
28
+ */
29
+ setFilter(filter: FilterEnum): PhotoCaptureBuilder;
30
+ /**
31
+ * Builds an instance of a PhotoCapture that has all the combined
32
+ * parameters of the Options that have been added to the Builder.
33
+ *
34
+ * @return promise of PhotoCapture instance
35
+ */
36
+ build(): Promise<PhotoCapture>;
37
+ }
38
+ //# sourceMappingURL=photo-capture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"photo-capture.d.ts","sourceRoot":"","sources":["../../../src/capture/photo-capture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAKrC;;GAEG;AACH,qBAAa,YAAY;IACvB;;OAEG;IACH,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;CAG/B;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,cAAc,CAAC,mBAAmB,CAAC;IAC1E,6CAA6C;;IAK7C;;;;OAIG;IACH,aAAa,CAAC,UAAU,EAAE,mBAAmB,GAAG,mBAAmB;IAKnE;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,mBAAmB;IAKlD;;;;;OAKG;IACH,KAAK,IAAI,OAAO,CAAC,YAAY,CAAC;CAK/B"}
@@ -0,0 +1,43 @@
1
+ import { CaptureBuilder } from './capture';
2
+ import type { MaxRecordableTimeEnum, VideoFileFormatEnum } from '../theta-repository/options';
3
+ /**
4
+ * VideoCapture class
5
+ */
6
+ export declare class VideoCapture {
7
+ /**
8
+ * start video capture
9
+ * @return promise of captured file url
10
+ */
11
+ startCapture(): Promise<string>;
12
+ /**
13
+ * stop video capture
14
+ */
15
+ stopCapture(): void;
16
+ }
17
+ /**
18
+ * VideoCaptureBuilder class
19
+ */
20
+ export declare class VideoCaptureBuilder extends CaptureBuilder<VideoCaptureBuilder> {
21
+ /** construct VideoCaptureBuilder instance */
22
+ constructor();
23
+ /**
24
+ * Set video file format.
25
+ * @param {VideoFileFormatEnum} fileFormat Video file format to set
26
+ * @return VideoCaptureBuilder
27
+ */
28
+ setFileFormat(fileFormat: VideoFileFormatEnum): VideoCaptureBuilder;
29
+ /**
30
+ * Set maximum recordable time (in seconds) of the camera.
31
+ * @param {MaxRecordableTimeEnum} time Maximum recordable time to set
32
+ * @return VideoCaptureBuilder
33
+ */
34
+ setMaxRecordableTime(time: MaxRecordableTimeEnum): VideoCaptureBuilder;
35
+ /**
36
+ * Builds an instance of a VideoCapture that has all the combined
37
+ * parameters of the Options that have been added to the Builder.
38
+ *
39
+ * @return promise of VideoCapture instance
40
+ */
41
+ build(): Promise<VideoCapture>;
42
+ }
43
+ //# sourceMappingURL=video-capture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"video-capture.d.ts","sourceRoot":"","sources":["../../../src/capture/video-capture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EACV,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAKrC;;GAEG;AACH,qBAAa,YAAY;IACvB;;;OAGG;IACH,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;IAG/B;;OAEG;IACH,WAAW;CAGZ;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,cAAc,CAAC,mBAAmB,CAAC;IAC1E,6CAA6C;;IAK7C;;;;OAIG;IACH,aAAa,CAAC,UAAU,EAAE,mBAAmB,GAAG,mBAAmB;IAKnE;;;;OAIG;IACH,oBAAoB,CAAC,IAAI,EAAE,qBAAqB,GAAG,mBAAmB;IAKtE;;;;;OAKG;IACH,KAAK,IAAI,OAAO,CAAC,YAAY,CAAC;CAK/B"}