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