@sodyo/react-native-sodyo-sdk 3.4.0 → 3.5.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.
|
@@ -271,6 +271,13 @@ public class RNSodyoSdkModule extends ReactContextBaseJavaModule {
|
|
|
271
271
|
Sodyo.performMarker(markerId, activity);
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
+
@ReactMethod
|
|
275
|
+
public void startTroubleshoot() {
|
|
276
|
+
Log.i(TAG, "startTroubleshoot()");
|
|
277
|
+
Activity activity = getCurrentActivity();
|
|
278
|
+
Sodyo.startTroubleshoot(activity);
|
|
279
|
+
}
|
|
280
|
+
|
|
274
281
|
@ReactMethod
|
|
275
282
|
public void setSodyoLogoVisible(Boolean isVisible) {
|
|
276
283
|
Log.i(TAG, "setSodyoLogoVisible()");
|
package/package.json
CHANGED
package/sodyosdk.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ declare const _default: {
|
|
|
18
18
|
removeAllListeners (eventType?: string): void
|
|
19
19
|
onMarkerContent (callback: (markerId: string, data: { [key: string]: any }) => void): () => void,
|
|
20
20
|
performMarker (markerId: string): void,
|
|
21
|
+
startTroubleshoot (): void,
|
|
21
22
|
setSodyoLogoVisible (isVisible: boolean): void,
|
|
22
23
|
setEnv(env: TEnv): void,
|
|
23
24
|
}
|
package/sodyosdk.js
CHANGED
|
@@ -89,6 +89,10 @@ export default {
|
|
|
89
89
|
return RNSodyoSdk.performMarker(markerId);
|
|
90
90
|
},
|
|
91
91
|
|
|
92
|
+
startTroubleshoot: () => {
|
|
93
|
+
return RNSodyoSdk.startTroubleshoot();
|
|
94
|
+
},
|
|
95
|
+
|
|
92
96
|
start: (successCallback, errorCallback) => {
|
|
93
97
|
eventEmitter.removeAllListeners('EventMarkerDetectSuccess');
|
|
94
98
|
eventEmitter.removeAllListeners('EventMarkerDetectError');
|