mirror of
https://gitee.com/shuto/customCamera.git
synced 2026-05-21 00:00:01 +08:00
Ajout des options JS pour :
+ Activer / desactiver le switch de camera. + Choisir une camera par défaut.
This commit is contained in:
@@ -87,6 +87,9 @@ public class CameraLauncher extends CordovaPlugin {
|
||||
intent.putExtra("defaultFlash", args.getInt(8));
|
||||
intent.putExtra("switchFlash", args.getBoolean(9));
|
||||
|
||||
intent.putExtra("defaultCamera", args.getInt(10));
|
||||
intent.putExtra("switchCamera", args.getBoolean(11));
|
||||
|
||||
cordova.startActivityForResult((CordovaPlugin) this, intent,
|
||||
CameraLauncher.REQUEST_CODE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user