matrixbirds 5 anni fa
parent
commit
9ee5209def
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      android/src/main/java/com/syan/agora/AgoraModule.java

+ 2
- 2
android/src/main/java/com/syan/agora/AgoraModule.java Vedi File

@@ -1368,10 +1368,10 @@ public class AgoraModule extends ReactContextBaseJavaModule {
1368 1368
     @ReactMethod
1369 1369
     public void getCameraMaxZoomFactor(Promise promise) {
1370 1370
         try {
1371
-            int res = AgoraManager.getInstance().mRtcEngine.getCameraMaxZoomFactor();
1371
+            double res = AgoraManager.getInstance().mRtcEngine.getCameraMaxZoomFactor();
1372 1372
             WritableMap map = Arguments.createMap();
1373 1373
             map.putBoolean("success", true);
1374
-            map.putInt("value", res);
1374
+            map.putDouble("value", res);
1375 1375
             promise.resolve(map);
1376 1376
         } catch (Exception e) {
1377 1377
             promise.reject(e);