theta-client-react-native 1.13.2 → 1.14.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.ja.md +7 -0
- package/README.md +7 -0
- package/android/build.gradle +14 -86
- package/android/gradle.properties +3 -4
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +205 -116
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkPackage.kt +22 -8
- package/ios/ThetaClientReactNative.mm +37 -0
- package/ios/ThetaClientReactNative.swift +126 -143
- package/lib/commonjs/NativeThetaClientReactNative.js +34 -0
- package/lib/commonjs/NativeThetaClientReactNative.js.map +1 -0
- package/lib/commonjs/capture/burst-capture.js +6 -6
- package/lib/commonjs/capture/burst-capture.js.map +1 -1
- package/lib/commonjs/capture/composite-interval-capture.js +6 -6
- package/lib/commonjs/capture/composite-interval-capture.js.map +1 -1
- package/lib/commonjs/capture/continuous-capture.js +5 -5
- package/lib/commonjs/capture/continuous-capture.js.map +1 -1
- package/lib/commonjs/capture/limitless-interval-capture.js +6 -6
- package/lib/commonjs/capture/limitless-interval-capture.js.map +1 -1
- package/lib/commonjs/capture/multi-bracket-capture.js +6 -6
- package/lib/commonjs/capture/multi-bracket-capture.js.map +1 -1
- package/lib/commonjs/capture/photo-capture.js +5 -5
- package/lib/commonjs/capture/photo-capture.js.map +1 -1
- package/lib/commonjs/capture/shot-count-specified-interval-capture.js +6 -6
- package/lib/commonjs/capture/shot-count-specified-interval-capture.js.map +1 -1
- package/lib/commonjs/capture/time-shift-capture.js +6 -6
- package/lib/commonjs/capture/time-shift-capture.js.map +1 -1
- package/lib/commonjs/capture/time-shift-manual-capture.js +7 -7
- package/lib/commonjs/capture/time-shift-manual-capture.js.map +1 -1
- package/lib/commonjs/capture/video-capture.js +6 -6
- package/lib/commonjs/capture/video-capture.js.map +1 -1
- package/lib/commonjs/index.js +12 -12
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/theta-repository/event-websocket.js +4 -4
- package/lib/commonjs/theta-repository/event-websocket.js.map +1 -1
- package/lib/commonjs/theta-repository/libs/convert-video-formats.js +3 -3
- package/lib/commonjs/theta-repository/libs/convert-video-formats.js.map +1 -1
- package/lib/commonjs/theta-repository/notify-controller.js +3 -1
- package/lib/commonjs/theta-repository/notify-controller.js.map +1 -1
- package/lib/commonjs/theta-repository/theta-repository.js +54 -64
- package/lib/commonjs/theta-repository/theta-repository.js.map +1 -1
- package/lib/module/NativeThetaClientReactNative.js +28 -0
- package/lib/module/NativeThetaClientReactNative.js.map +1 -0
- package/lib/module/capture/burst-capture.js +1 -2
- package/lib/module/capture/burst-capture.js.map +1 -1
- package/lib/module/capture/composite-interval-capture.js +1 -2
- package/lib/module/capture/composite-interval-capture.js.map +1 -1
- package/lib/module/capture/continuous-capture.js +1 -2
- package/lib/module/capture/continuous-capture.js.map +1 -1
- package/lib/module/capture/limitless-interval-capture.js +1 -2
- package/lib/module/capture/limitless-interval-capture.js.map +1 -1
- package/lib/module/capture/multi-bracket-capture.js +1 -2
- package/lib/module/capture/multi-bracket-capture.js.map +1 -1
- package/lib/module/capture/photo-capture.js +1 -2
- package/lib/module/capture/photo-capture.js.map +1 -1
- package/lib/module/capture/shot-count-specified-interval-capture.js +1 -2
- package/lib/module/capture/shot-count-specified-interval-capture.js.map +1 -1
- package/lib/module/capture/time-shift-capture.js +1 -2
- package/lib/module/capture/time-shift-capture.js.map +1 -1
- package/lib/module/capture/time-shift-manual-capture.js +1 -2
- package/lib/module/capture/time-shift-manual-capture.js.map +1 -1
- package/lib/module/capture/video-capture.js +1 -2
- package/lib/module/capture/video-capture.js.map +1 -1
- package/lib/module/index.js +11 -12
- package/lib/module/index.js.map +1 -1
- package/lib/module/theta-repository/event-websocket.js +1 -2
- package/lib/module/theta-repository/event-websocket.js.map +1 -1
- package/lib/module/theta-repository/libs/convert-video-formats.js +1 -2
- package/lib/module/theta-repository/libs/convert-video-formats.js.map +1 -1
- package/lib/module/theta-repository/notify-controller.js +3 -2
- package/lib/module/theta-repository/notify-controller.js.map +1 -1
- package/lib/module/theta-repository/theta-repository.js +15 -26
- package/lib/module/theta-repository/theta-repository.js.map +1 -1
- package/lib/typescript/NativeThetaClientReactNative.d.ts +91 -0
- package/lib/typescript/NativeThetaClientReactNative.d.ts.map +1 -0
- package/lib/typescript/capture/burst-capture.d.ts.map +1 -1
- package/lib/typescript/capture/composite-interval-capture.d.ts.map +1 -1
- package/lib/typescript/capture/continuous-capture.d.ts +2 -1
- package/lib/typescript/capture/continuous-capture.d.ts.map +1 -1
- package/lib/typescript/capture/limitless-interval-capture.d.ts.map +1 -1
- package/lib/typescript/capture/multi-bracket-capture.d.ts.map +1 -1
- package/lib/typescript/capture/photo-capture.d.ts.map +1 -1
- package/lib/typescript/capture/shot-count-specified-interval-capture.d.ts.map +1 -1
- package/lib/typescript/capture/time-shift-capture.d.ts.map +1 -1
- package/lib/typescript/capture/time-shift-manual-capture.d.ts.map +1 -1
- package/lib/typescript/capture/video-capture.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +6 -2
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/theta-repository/event-websocket.d.ts.map +1 -1
- package/lib/typescript/theta-repository/notify-controller.d.ts +2 -1
- package/lib/typescript/theta-repository/notify-controller.d.ts.map +1 -1
- package/lib/typescript/theta-repository/theta-repository.d.ts +6 -6
- package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -1
- package/package.json +35 -27
- package/src/NativeThetaClientReactNative.ts +199 -0
- package/src/capture/burst-capture.ts +3 -6
- package/src/capture/capture.ts +1 -1
- package/src/capture/composite-interval-capture.ts +3 -6
- package/src/capture/continuous-capture.ts +4 -7
- package/src/capture/limitless-interval-capture.ts +3 -6
- package/src/capture/multi-bracket-capture.ts +3 -6
- package/src/capture/photo-capture.ts +3 -6
- package/src/capture/shot-count-specified-interval-capture.ts +3 -6
- package/src/capture/time-shift-capture.ts +3 -6
- package/src/capture/time-shift-manual-capture.ts +3 -6
- package/src/capture/video-capture.ts +3 -6
- package/src/index.tsx +12 -19
- package/src/theta-repository/event-websocket.ts +1 -3
- package/src/theta-repository/libs/convert-video-formats.ts +3 -3
- package/src/theta-repository/notify-controller.ts +4 -8
- package/src/theta-repository/theta-repository.ts +28 -36
- package/theta-client-react-native.podspec +4 -19
- package/ios/ThetaClientReactNative.m +0 -308
- package/ios/ThetaClientReactNative.xcodeproj/project.pbxproj +0 -283
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { CaptureBuilder, CapturingStatusEnum } from './capture';
|
|
2
|
-
import
|
|
2
|
+
import ThetaClientReactNative from '../NativeThetaClientReactNative';
|
|
3
3
|
import type { TimeShiftIntervalEnum } from '../theta-repository/options';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
NotifyController,
|
|
7
|
-
} from '../theta-repository/notify-controller';
|
|
8
|
-
const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
|
|
4
|
+
import type { BaseNotify } from '../theta-repository/notify-controller';
|
|
5
|
+
import { NotifyController } from '../theta-repository/notify-controller';
|
|
9
6
|
|
|
10
7
|
const NOTIFY_NAME = 'TIME-SHIFT-PROGRESS';
|
|
11
8
|
const NOTIFY_STOP_ERROR = 'TIME-SHIFT-STOP-ERROR';
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { CaptureBuilder, CapturingStatusEnum } from './capture';
|
|
2
|
-
import
|
|
2
|
+
import ThetaClientReactNative from '../NativeThetaClientReactNative';
|
|
3
3
|
import type { TimeShiftIntervalEnum } from '../theta-repository/options';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
NotifyController,
|
|
7
|
-
} from '../theta-repository/notify-controller';
|
|
8
|
-
const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
|
|
4
|
+
import type { BaseNotify } from '../theta-repository/notify-controller';
|
|
5
|
+
import { NotifyController } from '../theta-repository/notify-controller';
|
|
9
6
|
|
|
10
7
|
const NOTIFY_NAME = 'TIME-SHIFT-MANUAL-PROGRESS';
|
|
11
8
|
const NOTIFY_STOP_ERROR = 'TIME-SHIFT-MANUAL-STOP-ERROR';
|
|
@@ -4,12 +4,9 @@ import type {
|
|
|
4
4
|
VideoFileFormatEnum,
|
|
5
5
|
} from '../theta-repository/options';
|
|
6
6
|
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
NotifyController,
|
|
11
|
-
} from '../theta-repository/notify-controller';
|
|
12
|
-
const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
|
|
7
|
+
import ThetaClientReactNative from '../NativeThetaClientReactNative';
|
|
8
|
+
import type { BaseNotify } from '../theta-repository/notify-controller';
|
|
9
|
+
import { NotifyController } from '../theta-repository/notify-controller';
|
|
13
10
|
|
|
14
11
|
const NOTIFY_NAME = 'VIDEO-CAPTURE-STOP-ERROR';
|
|
15
12
|
const NOTIFY_CAPTURING = 'VIDEO-CAPTURE-CAPTURING';
|
package/src/index.tsx
CHANGED
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Spec } from './NativeThetaClientReactNative';
|
|
2
|
+
import NativeThetaClientReactNative from './NativeThetaClientReactNative';
|
|
2
3
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
'- You are not using Expo Go\n';
|
|
4
|
+
const ThetaClientReactNative: Spec = NativeThetaClientReactNative;
|
|
5
|
+
// Ensure TurboModule is loaded on first access (triggers Proxy getter)
|
|
6
|
+
// eslint-disable-next-line no-void -- intentional: evaluate for side effect only
|
|
7
|
+
void ThetaClientReactNative;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
throw new Error(LINKING_ERROR);
|
|
16
|
-
},
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
/** theta frame event name */
|
|
21
|
-
export const THETA_EVENT_NAME = ThetaClientReactNative.DEFAULT_EVENT_NAME;
|
|
9
|
+
/** theta frame event name
|
|
10
|
+
* Note: TurboModule interfaces cannot contain constant properties (Codegen limitation).
|
|
11
|
+
* Therefore, this constant is defined here instead of in the Spec interface,
|
|
12
|
+
* even though Swift's constantsToExport() defines it as DEFAULT_EVENT_NAME.
|
|
13
|
+
*/
|
|
14
|
+
export const THETA_EVENT_NAME = 'ThetaFrameEvent';
|
|
22
15
|
|
|
23
16
|
export * from './theta-repository';
|
|
24
17
|
export * from './theta-repository/options';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ThetaClientReactNative from '../NativeThetaClientReactNative';
|
|
2
2
|
import type { Options } from './options';
|
|
3
3
|
import type { ThetaState } from './theta-state';
|
|
4
4
|
import type { BaseNotify, NotifyController } from './notify-controller';
|
|
5
5
|
|
|
6
|
-
const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
|
|
7
|
-
|
|
8
6
|
const NOTIFY_EVENT = 'EVENT-WEBSOCKET-EVENT';
|
|
9
7
|
const NOTIFY_CLOSE = 'EVENT-WEBSOCKET-CLOSE';
|
|
10
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseNotify
|
|
3
|
-
|
|
1
|
+
import ThetaClientReactNative from '../../NativeThetaClientReactNative';
|
|
2
|
+
import type { BaseNotify } from '../notify-controller';
|
|
3
|
+
import { NotifyController } from '../notify-controller';
|
|
4
4
|
|
|
5
5
|
const NOTIFY_PROGRESS = 'CONVERT-VIDEO-FORMATS-PROGRESS';
|
|
6
6
|
const MESSAGE_ERROR_RUNNING = 'convertVideoFormats is running.';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
NativeModules,
|
|
5
|
-
} from 'react-native';
|
|
1
|
+
import type { EmitterSubscription } from 'react-native';
|
|
2
|
+
import { NativeEventEmitter } from 'react-native';
|
|
3
|
+
import ThetaClientReactNative from '../NativeThetaClientReactNative';
|
|
6
4
|
|
|
7
5
|
export interface BaseNotify {
|
|
8
6
|
name: string;
|
|
@@ -55,9 +53,7 @@ export class NotifyController {
|
|
|
55
53
|
callback: (event: BaseNotify) => void
|
|
56
54
|
): EmitterSubscription {
|
|
57
55
|
if (this.eventEmitter == null) {
|
|
58
|
-
this.eventEmitter = new NativeEventEmitter(
|
|
59
|
-
NativeModules.ThetaClientReactNative
|
|
60
|
-
);
|
|
56
|
+
this.eventEmitter = new NativeEventEmitter(ThetaClientReactNative);
|
|
61
57
|
}
|
|
62
58
|
return this.eventEmitter.addListener('ThetaNotify', callback);
|
|
63
59
|
}
|
|
@@ -5,7 +5,7 @@ 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
|
-
import
|
|
8
|
+
import ThetaClientReactNative from '../NativeThetaClientReactNative';
|
|
9
9
|
import type {
|
|
10
10
|
OptionNameEnum,
|
|
11
11
|
Options,
|
|
@@ -35,7 +35,6 @@ import type { ThetaTimeout } from './theta-timeout';
|
|
|
35
35
|
import { NotifyController } from './notify-controller';
|
|
36
36
|
import { EventWebSocket } from './event-websocket';
|
|
37
37
|
import { convertOptions, convertVideoFormatsImpl } from './libs';
|
|
38
|
-
const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
|
|
39
38
|
|
|
40
39
|
const NOTIFY_API_LOG = 'API-LOG';
|
|
41
40
|
let apiLogListener: ((message: string) => void) | undefined;
|
|
@@ -83,7 +82,11 @@ export async function initialize(
|
|
|
83
82
|
await setNotifyApiLogListener(apiLogListener);
|
|
84
83
|
}
|
|
85
84
|
|
|
86
|
-
return ThetaClientReactNative.initialize(
|
|
85
|
+
return ThetaClientReactNative.initialize(
|
|
86
|
+
endPoint,
|
|
87
|
+
config ?? null,
|
|
88
|
+
timeout ?? null
|
|
89
|
+
);
|
|
87
90
|
}
|
|
88
91
|
|
|
89
92
|
/**
|
|
@@ -348,16 +351,9 @@ export function setBluetoothDevice(uuid: string): Promise<String> {
|
|
|
348
351
|
* @function getThetaModel
|
|
349
352
|
* @return promise of THETA model
|
|
350
353
|
**/
|
|
351
|
-
export function getThetaModel(): Promise<ThetaModel | undefined> {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
.then((result?: string) => {
|
|
355
|
-
resolve((result as ThetaModel) ?? undefined);
|
|
356
|
-
})
|
|
357
|
-
.catch((error: any) => {
|
|
358
|
-
reject(error);
|
|
359
|
-
});
|
|
360
|
-
});
|
|
354
|
+
export async function getThetaModel(): Promise<ThetaModel | undefined> {
|
|
355
|
+
const result = await ThetaClientReactNative.getThetaModel();
|
|
356
|
+
return result ? (result as ThetaModel) : undefined;
|
|
361
357
|
}
|
|
362
358
|
|
|
363
359
|
/**
|
|
@@ -367,7 +363,7 @@ export function getThetaModel(): Promise<ThetaModel | undefined> {
|
|
|
367
363
|
* @return promise of ThetaInfo
|
|
368
364
|
**/
|
|
369
365
|
export function getThetaInfo(): Promise<ThetaInfo> {
|
|
370
|
-
return ThetaClientReactNative.getThetaInfo()
|
|
366
|
+
return ThetaClientReactNative.getThetaInfo() as Promise<ThetaInfo>;
|
|
371
367
|
}
|
|
372
368
|
|
|
373
369
|
/**
|
|
@@ -387,7 +383,7 @@ export function getThetaLicense(): Promise<string> {
|
|
|
387
383
|
* @return promise of ThetaState
|
|
388
384
|
**/
|
|
389
385
|
export function getThetaState(): Promise<ThetaState> {
|
|
390
|
-
return ThetaClientReactNative.getThetaState()
|
|
386
|
+
return ThetaClientReactNative.getThetaState() as Promise<ThetaState>;
|
|
391
387
|
}
|
|
392
388
|
|
|
393
389
|
/**
|
|
@@ -416,8 +412,8 @@ export function listFiles(
|
|
|
416
412
|
fileTypeEnum,
|
|
417
413
|
startPosition,
|
|
418
414
|
entryCount,
|
|
419
|
-
storage
|
|
420
|
-
)
|
|
415
|
+
storage ?? null
|
|
416
|
+
) as Promise<ThetaFiles>;
|
|
421
417
|
}
|
|
422
418
|
|
|
423
419
|
/**
|
|
@@ -472,7 +468,10 @@ export function deleteAllVideoFiles(): Promise<boolean> {
|
|
|
472
468
|
export async function getOptions(
|
|
473
469
|
optionNames: OptionNameEnum[]
|
|
474
470
|
): Promise<Options> {
|
|
475
|
-
const response = await ThetaClientReactNative.getOptions(optionNames)
|
|
471
|
+
const response = (await ThetaClientReactNative.getOptions(optionNames)) as {
|
|
472
|
+
options: Options;
|
|
473
|
+
json?: Record<string, string>;
|
|
474
|
+
};
|
|
476
475
|
const { options, json } = response;
|
|
477
476
|
const result = convertOptions(options, json);
|
|
478
477
|
return result;
|
|
@@ -507,7 +506,7 @@ export function getMetadata(fileUrl: string): Promise<MetaInfo> {
|
|
|
507
506
|
* @return promise of AccessPoint list
|
|
508
507
|
*/
|
|
509
508
|
export function listAccessPoints(): Promise<AccessPoint[]> {
|
|
510
|
-
return ThetaClientReactNative.listAccessPoints()
|
|
509
|
+
return ThetaClientReactNative.listAccessPoints() as Promise<AccessPoint[]>;
|
|
511
510
|
}
|
|
512
511
|
|
|
513
512
|
/**
|
|
@@ -665,7 +664,7 @@ export function getMySettingFromOldModel(
|
|
|
665
664
|
* @function setMySetting
|
|
666
665
|
* @param captureMode The target shooting mode. RICOH THETA S and SC do not support My Settings in video capture mode.
|
|
667
666
|
* @param options registered to My Settings
|
|
668
|
-
* @returns Promise of boolean result
|
|
667
|
+
* @returns Promise of boolean result
|
|
669
668
|
*/
|
|
670
669
|
export function setMySetting(
|
|
671
670
|
captureMode: CaptureModeEnum,
|
|
@@ -677,7 +676,7 @@ export function setMySetting(
|
|
|
677
676
|
/**
|
|
678
677
|
* Delete shooting conditions in My Settings. Supported just by Theta X and Z1.
|
|
679
678
|
* @param captureMode The target shooting mode
|
|
680
|
-
* @returns Promise of boolean result
|
|
679
|
+
* @returns Promise of boolean result
|
|
681
680
|
*/
|
|
682
681
|
export function deleteMySetting(
|
|
683
682
|
captureMode: CaptureModeEnum
|
|
@@ -691,14 +690,14 @@ export function deleteMySetting(
|
|
|
691
690
|
* @return A list of the plugins installed in Theta.
|
|
692
691
|
*/
|
|
693
692
|
export function listPlugins(): Promise<PluginInfo[]> {
|
|
694
|
-
return ThetaClientReactNative.listPlugins()
|
|
693
|
+
return ThetaClientReactNative.listPlugins() as Promise<PluginInfo[]>;
|
|
695
694
|
}
|
|
696
695
|
|
|
697
696
|
/**
|
|
698
697
|
* Sets the installed plugin for boot. Supported just by Theta V.
|
|
699
698
|
* @function setPlugin
|
|
700
699
|
* @param packageName Package name of the target plugin.
|
|
701
|
-
* @return Promise of boolean result
|
|
700
|
+
* @return Promise of boolean result
|
|
702
701
|
*/
|
|
703
702
|
export function setPlugin(packageName: string): Promise<boolean> {
|
|
704
703
|
return ThetaClientReactNative.setPlugin(packageName);
|
|
@@ -708,7 +707,7 @@ export function setPlugin(packageName: string): Promise<boolean> {
|
|
|
708
707
|
* Start the plugin specified by the [packageName].
|
|
709
708
|
* @function startPlugin
|
|
710
709
|
* @param packageName Package name of the target plugin.
|
|
711
|
-
* @return Promise of boolean result
|
|
710
|
+
* @return Promise of boolean result
|
|
712
711
|
*/
|
|
713
712
|
export function startPlugin(packageName: string): Promise<boolean> {
|
|
714
713
|
return ThetaClientReactNative.startPlugin(packageName);
|
|
@@ -717,7 +716,7 @@ export function startPlugin(packageName: string): Promise<boolean> {
|
|
|
717
716
|
/**
|
|
718
717
|
* Stop the running plugin.
|
|
719
718
|
* @function stopPlugin
|
|
720
|
-
* @return Promise of boolean result
|
|
719
|
+
* @return Promise of boolean result
|
|
721
720
|
*/
|
|
722
721
|
export function stopPlugin(): Promise<boolean> {
|
|
723
722
|
return ThetaClientReactNative.stopPlugin();
|
|
@@ -750,20 +749,13 @@ export function getPluginOrders(): Promise<string[]> {
|
|
|
750
749
|
* When not specifying, set an empty string.
|
|
751
750
|
* If an empty string is placed mid-way, it will be moved to the front.
|
|
752
751
|
* Specifying zero package name will result in an error
|
|
753
|
-
* @return Promise of boolean result
|
|
752
|
+
* @return Promise of boolean result
|
|
754
753
|
*/
|
|
755
754
|
export function setPluginOrders(plugins: string[]): Promise<boolean> {
|
|
756
755
|
return ThetaClientReactNative.setPluginOrders(plugins);
|
|
757
756
|
}
|
|
758
757
|
|
|
759
|
-
export function getEventWebSocket(): Promise<EventWebSocket> {
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
.then(() => {
|
|
763
|
-
resolve(new EventWebSocket(NotifyController.instance));
|
|
764
|
-
})
|
|
765
|
-
.catch((error: any) => {
|
|
766
|
-
reject(error);
|
|
767
|
-
});
|
|
768
|
-
});
|
|
758
|
+
export async function getEventWebSocket(): Promise<EventWebSocket> {
|
|
759
|
+
await ThetaClientReactNative.getEventWebSocket();
|
|
760
|
+
return new EventWebSocket(NotifyController.instance);
|
|
769
761
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
require "json"
|
|
2
2
|
|
|
3
3
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
-
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
5
4
|
|
|
6
5
|
Pod::Spec.new do |s|
|
|
7
6
|
s.name = "theta-client-react-native"
|
|
@@ -11,26 +10,12 @@ Pod::Spec.new do |s|
|
|
|
11
10
|
s.license = package["license"]
|
|
12
11
|
s.authors = package["author"]
|
|
13
12
|
|
|
14
|
-
s.platforms = { :ios => "15.
|
|
13
|
+
s.platforms = { :ios => "15.1" }
|
|
15
14
|
s.source = { :git => "git@github.com:ricohapi/theta-client.git", :tag => "#{s.version}" }
|
|
16
15
|
|
|
17
|
-
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
16
|
+
s.source_files = "ios/**/*.{h,m,mm,swift,cpp}"
|
|
18
17
|
|
|
19
|
-
s.dependency "
|
|
20
|
-
s.dependency "THETAClient", "1.13.2"
|
|
18
|
+
s.dependency "THETAClient", "1.14.0"
|
|
21
19
|
|
|
22
|
-
|
|
23
|
-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
24
|
-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
25
|
-
s.pod_target_xcconfig = {
|
|
26
|
-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
27
|
-
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
28
|
-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
29
|
-
}
|
|
30
|
-
s.dependency "React-Codegen"
|
|
31
|
-
s.dependency "RCT-Folly"
|
|
32
|
-
s.dependency "RCTRequired"
|
|
33
|
-
s.dependency "RCTTypeSafety"
|
|
34
|
-
s.dependency "ReactCommon/turbomodule/core"
|
|
35
|
-
end
|
|
20
|
+
install_modules_dependencies(s)
|
|
36
21
|
end
|
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
#import <React/RCTBridgeModule.h>
|
|
2
|
-
|
|
3
|
-
@interface RCT_EXTERN_MODULE(ThetaClientReactNative, NSObject)
|
|
4
|
-
|
|
5
|
-
RCT_EXTERN_METHOD(setApiLogListener:(BOOL)enabled
|
|
6
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
7
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
8
|
-
|
|
9
|
-
RCT_EXTERN_METHOD(initialize:(NSString)endPoint
|
|
10
|
-
withConfig:(NSDictionary*)config
|
|
11
|
-
withTimeout:(NSDictionary*)timeout
|
|
12
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
13
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
14
|
-
|
|
15
|
-
RCT_EXTERN_METHOD(isInitialized:(RCTPromiseResolveBlock)resolve
|
|
16
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
17
|
-
|
|
18
|
-
RCT_EXTERN_METHOD(getThetaModel:(RCTPromiseResolveBlock)resolve
|
|
19
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
20
|
-
|
|
21
|
-
RCT_EXTERN_METHOD(getThetaInfo:(RCTPromiseResolveBlock)resolve
|
|
22
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
23
|
-
|
|
24
|
-
RCT_EXTERN_METHOD(getThetaLicense:(RCTPromiseResolveBlock)resolve
|
|
25
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
26
|
-
|
|
27
|
-
RCT_EXTERN_METHOD(getThetaState:(RCTPromiseResolveBlock)resolve
|
|
28
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
29
|
-
|
|
30
|
-
RCT_EXTERN_METHOD(listFiles:(NSString*)fileType
|
|
31
|
-
withStartPosition:(int)startPosition
|
|
32
|
-
withEntryCount:(int)entryCount
|
|
33
|
-
withStorage:(NSString*)storage
|
|
34
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
35
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
36
|
-
|
|
37
|
-
RCT_EXTERN_METHOD(deleteFiles:(NSArray*)fileUrls
|
|
38
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
39
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
40
|
-
|
|
41
|
-
RCT_EXTERN_METHOD(deleteAllFiles:(RCTPromiseResolveBlock)resolve
|
|
42
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
43
|
-
|
|
44
|
-
RCT_EXTERN_METHOD(deleteAllImageFiles:(RCTPromiseResolveBlock)resolve
|
|
45
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
46
|
-
|
|
47
|
-
RCT_EXTERN_METHOD(deleteAllVideoFiles:(RCTPromiseResolveBlock)resolve
|
|
48
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
49
|
-
|
|
50
|
-
RCT_EXTERN_METHOD(getOptions:(NSArray*)optionNames
|
|
51
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
52
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
53
|
-
|
|
54
|
-
RCT_EXTERN_METHOD(setOptions:(NSDictionary*)options
|
|
55
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
56
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
57
|
-
|
|
58
|
-
RCT_EXTERN_METHOD(getLivePreview:(RCTPromiseResolveBlock)resolve
|
|
59
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
60
|
-
|
|
61
|
-
RCT_EXTERN_METHOD(stopLivePreview:(RCTPromiseResolveBlock)resolve
|
|
62
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
63
|
-
|
|
64
|
-
RCT_EXTERN_METHOD(getPhotoCaptureBuilder:(RCTPromiseResolveBlock)resolve
|
|
65
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
66
|
-
|
|
67
|
-
RCT_EXTERN_METHOD(buildPhotoCapture:(NSDictionary*)options
|
|
68
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
69
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
70
|
-
|
|
71
|
-
RCT_EXTERN_METHOD(takePicture:(RCTPromiseResolveBlock)resolve
|
|
72
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
73
|
-
|
|
74
|
-
RCT_EXTERN_METHOD(getTimeShiftCaptureBuilder:(RCTPromiseResolveBlock)resolve
|
|
75
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
76
|
-
|
|
77
|
-
RCT_EXTERN_METHOD(buildTimeShiftCapture:(NSDictionary*)options
|
|
78
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
79
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
80
|
-
|
|
81
|
-
RCT_EXTERN_METHOD(startTimeShiftCapture:(RCTPromiseResolveBlock)resolve
|
|
82
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
83
|
-
|
|
84
|
-
RCT_EXTERN_METHOD(cancelTimeShiftCapture:(RCTPromiseResolveBlock)resolve
|
|
85
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
86
|
-
|
|
87
|
-
RCT_EXTERN_METHOD(getTimeShiftManualCaptureBuilder:(RCTPromiseResolveBlock)resolve
|
|
88
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
89
|
-
|
|
90
|
-
RCT_EXTERN_METHOD(buildTimeShiftManualCapture:(NSDictionary*)options
|
|
91
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
92
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
93
|
-
|
|
94
|
-
RCT_EXTERN_METHOD(startTimeShiftManualCapture:(RCTPromiseResolveBlock)resolve
|
|
95
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
96
|
-
|
|
97
|
-
RCT_EXTERN_METHOD(startTimeShiftManualSecondCapture:(RCTPromiseResolveBlock)resolve
|
|
98
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
99
|
-
|
|
100
|
-
RCT_EXTERN_METHOD(cancelTimeShiftManualCapture:(RCTPromiseResolveBlock)resolve
|
|
101
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
102
|
-
|
|
103
|
-
RCT_EXTERN_METHOD(getVideoCaptureBuilder:(RCTPromiseResolveBlock)resolve
|
|
104
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
105
|
-
|
|
106
|
-
RCT_EXTERN_METHOD(buildVideoCapture:(NSDictionary*)options
|
|
107
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
108
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
109
|
-
|
|
110
|
-
RCT_EXTERN_METHOD(startVideoCapture:(RCTPromiseResolveBlock)resolve
|
|
111
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
112
|
-
|
|
113
|
-
RCT_EXTERN_METHOD(stopVideoCapture:(RCTPromiseResolveBlock)resolve
|
|
114
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
115
|
-
|
|
116
|
-
RCT_EXTERN_METHOD(getLimitlessIntervalCaptureBuilder:(RCTPromiseResolveBlock)resolve
|
|
117
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
118
|
-
|
|
119
|
-
RCT_EXTERN_METHOD(buildLimitlessIntervalCapture:(NSDictionary*)options
|
|
120
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
121
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
122
|
-
|
|
123
|
-
RCT_EXTERN_METHOD(startLimitlessIntervalCapture:(RCTPromiseResolveBlock)resolve
|
|
124
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
125
|
-
|
|
126
|
-
RCT_EXTERN_METHOD(stopLimitlessIntervalCapture:(RCTPromiseResolveBlock)resolve
|
|
127
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
128
|
-
|
|
129
|
-
RCT_EXTERN_METHOD(getShotCountSpecifiedIntervalCaptureBuilder:(int)shotCount
|
|
130
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
131
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
132
|
-
|
|
133
|
-
RCT_EXTERN_METHOD(buildShotCountSpecifiedIntervalCapture:(NSDictionary*)options
|
|
134
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
135
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
136
|
-
|
|
137
|
-
RCT_EXTERN_METHOD(startShotCountSpecifiedIntervalCapture:(RCTPromiseResolveBlock)resolve
|
|
138
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
139
|
-
|
|
140
|
-
RCT_EXTERN_METHOD(cancelShotCountSpecifiedIntervalCapture:(RCTPromiseResolveBlock)resolve
|
|
141
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
142
|
-
|
|
143
|
-
RCT_EXTERN_METHOD(getCompositeIntervalCaptureBuilder:(int)shootingTimeSec
|
|
144
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
145
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
146
|
-
|
|
147
|
-
RCT_EXTERN_METHOD(buildCompositeIntervalCapture:(NSDictionary*)options
|
|
148
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
149
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
150
|
-
|
|
151
|
-
RCT_EXTERN_METHOD(startCompositeIntervalCapture:(RCTPromiseResolveBlock)resolve
|
|
152
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
153
|
-
|
|
154
|
-
RCT_EXTERN_METHOD(cancelCompositeIntervalCapture:(RCTPromiseResolveBlock)resolve
|
|
155
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
156
|
-
|
|
157
|
-
RCT_EXTERN_METHOD(getBurstCaptureBuilder:(NSString*)burstCaptureNum
|
|
158
|
-
burstBracketStep:(NSString*)burstBracketStep
|
|
159
|
-
burstCompensation:(NSString*)burstCompensation
|
|
160
|
-
burstMaxExposureTime:(NSString*)burstMaxExposureTime
|
|
161
|
-
burstEnableIsoControl:(NSString*)burstEnableIsoControl
|
|
162
|
-
burstOrder:(NSString*)burstOrder
|
|
163
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
164
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
165
|
-
|
|
166
|
-
RCT_EXTERN_METHOD(buildBurstCapture:(NSDictionary*)options
|
|
167
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
168
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
169
|
-
|
|
170
|
-
RCT_EXTERN_METHOD(startBurstCapture:(RCTPromiseResolveBlock)resolve
|
|
171
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
172
|
-
|
|
173
|
-
RCT_EXTERN_METHOD(cancelBurstCapture:(RCTPromiseResolveBlock)resolve
|
|
174
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
175
|
-
|
|
176
|
-
RCT_EXTERN_METHOD(getMultiBracketCaptureBuilder:(RCTPromiseResolveBlock)resolve
|
|
177
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
178
|
-
|
|
179
|
-
RCT_EXTERN_METHOD(buildMultiBracketCapture:(NSDictionary*)options
|
|
180
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
181
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
182
|
-
|
|
183
|
-
RCT_EXTERN_METHOD(startMultiBracketCapture:(RCTPromiseResolveBlock)resolve
|
|
184
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
185
|
-
|
|
186
|
-
RCT_EXTERN_METHOD(cancelMultiBracketCapture:(RCTPromiseResolveBlock)resolve
|
|
187
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
188
|
-
|
|
189
|
-
RCT_EXTERN_METHOD(getContinuousCaptureBuilder:(RCTPromiseResolveBlock)resolve
|
|
190
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
191
|
-
|
|
192
|
-
RCT_EXTERN_METHOD(buildContinuousCapture:(NSDictionary*)options
|
|
193
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
194
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
195
|
-
|
|
196
|
-
RCT_EXTERN_METHOD(startContinuousCapture:(RCTPromiseResolveBlock)resolve
|
|
197
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
198
|
-
|
|
199
|
-
RCT_EXTERN_METHOD(getMetadata:(NSString*)fileUrl
|
|
200
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
201
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
202
|
-
|
|
203
|
-
RCT_EXTERN_METHOD(reboot:(RCTPromiseResolveBlock)resolve
|
|
204
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
205
|
-
|
|
206
|
-
RCT_EXTERN_METHOD(reset:(RCTPromiseResolveBlock)resolve
|
|
207
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
208
|
-
|
|
209
|
-
RCT_EXTERN_METHOD(restoreSettings:(RCTPromiseResolveBlock)resolve
|
|
210
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
211
|
-
|
|
212
|
-
RCT_EXTERN_METHOD(stopSelfTimer:(RCTPromiseResolveBlock)resolve
|
|
213
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
214
|
-
|
|
215
|
-
RCT_EXTERN_METHOD(convertVideoFormats:(NSString *)fileUrl
|
|
216
|
-
withToLowResolution:(BOOL)toLowResolution
|
|
217
|
-
withApplyTopBottomCorrection:(BOOL)applyTopBottomCorrection
|
|
218
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
219
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
220
|
-
|
|
221
|
-
RCT_EXTERN_METHOD(cancelVideoConvert:(RCTPromiseResolveBlock)resolve
|
|
222
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
223
|
-
|
|
224
|
-
RCT_EXTERN_METHOD(finishWlan:(RCTPromiseResolveBlock)resolve
|
|
225
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
226
|
-
|
|
227
|
-
RCT_EXTERN_METHOD(listAccessPoints:(RCTPromiseResolveBlock)resolve
|
|
228
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
229
|
-
|
|
230
|
-
RCT_EXTERN_METHOD(setAccessPointDynamically:(NSDictionary *)params
|
|
231
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
232
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
233
|
-
|
|
234
|
-
RCT_EXTERN_METHOD(setAccessPointStatically:(NSDictionary *)params
|
|
235
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
236
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
237
|
-
|
|
238
|
-
RCT_EXTERN_METHOD(setAccessPointConnectionPriority:(NSString *)ssid
|
|
239
|
-
connectionPriority: (int)connectionPriority
|
|
240
|
-
ssidStealth: (BOOL)ssidStealth
|
|
241
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
242
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
243
|
-
|
|
244
|
-
RCT_EXTERN_METHOD(deleteAccessPoint:(NSString *)ssid
|
|
245
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
246
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
247
|
-
|
|
248
|
-
RCT_EXTERN_METHOD(getMySetting:(NSString *)captureMode
|
|
249
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
250
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
251
|
-
|
|
252
|
-
RCT_EXTERN_METHOD(getMySettingFromOldModel:(NSArray*)optionNames
|
|
253
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
254
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
255
|
-
|
|
256
|
-
RCT_EXTERN_METHOD(setMySetting:(NSString *)captureMode
|
|
257
|
-
withOptions:(NSDictionary*)options
|
|
258
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
259
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
260
|
-
|
|
261
|
-
RCT_EXTERN_METHOD(deleteMySetting:(NSString *)captureMode
|
|
262
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
263
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
264
|
-
|
|
265
|
-
RCT_EXTERN_METHOD(listPlugins:(RCTPromiseResolveBlock)resolve
|
|
266
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
267
|
-
|
|
268
|
-
RCT_EXTERN_METHOD(setPlugin:(NSString *)packageName
|
|
269
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
270
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
271
|
-
|
|
272
|
-
RCT_EXTERN_METHOD(startPlugin:(NSString *)packageName
|
|
273
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
274
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
275
|
-
|
|
276
|
-
RCT_EXTERN_METHOD(stopPlugin:(RCTPromiseResolveBlock)resolve
|
|
277
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
278
|
-
|
|
279
|
-
RCT_EXTERN_METHOD(getPluginLicense:(NSString *)packageName
|
|
280
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
281
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
282
|
-
|
|
283
|
-
RCT_EXTERN_METHOD(getPluginOrders:(RCTPromiseResolveBlock)resolve
|
|
284
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
285
|
-
|
|
286
|
-
RCT_EXTERN_METHOD(setPluginOrders:(NSArray *) plugins
|
|
287
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
288
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
289
|
-
|
|
290
|
-
RCT_EXTERN_METHOD(setBluetoothDevice:(NSString *)uuid
|
|
291
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
292
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
293
|
-
|
|
294
|
-
RCT_EXTERN_METHOD(getEventWebSocket:(RCTPromiseResolveBlock)resolve
|
|
295
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
296
|
-
|
|
297
|
-
RCT_EXTERN_METHOD(eventWebSocketStart:(RCTPromiseResolveBlock)resolve
|
|
298
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
299
|
-
|
|
300
|
-
RCT_EXTERN_METHOD(eventWebSocketStop:(RCTPromiseResolveBlock)resolve
|
|
301
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
302
|
-
|
|
303
|
-
+ (BOOL)requiresMainQueueSetup
|
|
304
|
-
{
|
|
305
|
-
return NO;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
@end
|