|
@@ -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);
|