public class CameraPlugin
extends org.apache.cordova.CordovaPlugin
Modifier and Type | Field and Description |
---|---|
static int |
CAMERA_PERMISSION_CODE |
Constructor and Description |
---|
CameraPlugin() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(java.lang.String action,
org.json.JSONArray args,
org.apache.cordova.CallbackContext callbackContext)
Executes an action called by JavaScript
|
void |
onRequestPermissionResult(int requestCode,
java.lang.String[] permissions,
int[] grantResults)
Called by the system when the user grants permissions
|
void |
onStart()
Called when the activity is becoming visible to the user.
|
protected void |
pluginInitialize()
Initializing the plugin by setting and allocating important information and objects.
|
execute, execute, fromPluginUri, getServiceName, handleOpenForRead, hasPermisssion, initialize, onActivityResult, onConfigurationChanged, onDestroy, onMessage, onNewIntent, onOverrideUrlLoading, onPause, onReceivedClientCertRequest, onReceivedHttpAuthRequest, onReset, onRestoreStateForActivityResult, onResume, onSaveInstanceState, onStop, privateInitialize, remapUri, requestPermissions, shouldAllowBridgeAccess, shouldAllowNavigation, shouldAllowRequest, shouldOpenExternalUrl, toPluginUri
public static final int CAMERA_PERMISSION_CODE
protected void pluginInitialize()
pluginInitialize
in class org.apache.cordova.CordovaPlugin
public void onStart()
org.apache.cordova.CordovaPlugin
onStart
in class org.apache.cordova.CordovaPlugin
public void onRequestPermissionResult(int requestCode, java.lang.String[] permissions, int[] grantResults) throws org.json.JSONException
org.apache.cordova.CordovaPlugin
onRequestPermissionResult
in class org.apache.cordova.CordovaPlugin
org.json.JSONException
public boolean execute(java.lang.String action, org.json.JSONArray args, org.apache.cordova.CallbackContext callbackContext) throws org.json.JSONException
execute
in class org.apache.cordova.CordovaPlugin
action
- The action to execute.args
- The exec() arguments.callbackContext
- The callback context used when calling back into JavaScript.org.json.JSONException