public class IpAddress extends CommonPlugin
actions, logListener, sPermissionsListcordova, preferences, webView| Constructor and Description |
|---|
IpAddress() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(java.lang.String action,
org.json.JSONArray args,
CallbackContext callbackContext)
Executes the request.
|
static org.json.JSONArray |
getIPAddress()
Get All Networkinterfaces from device
|
void |
pluginInitialize()
Called after plugin construction and fields have been initialized.
|
addPermission, onActivityResult, onDestroy, onMessage, onNewIntent, onPause, onRequestPermissionResult, onReset, onRestoreStateForActivityResult, onResume, onSaveInstanceState, onStart, onStopexecute, execute, fromPluginUri, getServiceName, handleOpenForRead, hasPermisssion, initialize, onConfigurationChanged, onOverrideUrlLoading, onReceivedClientCertRequest, onReceivedHttpAuthRequest, privateInitialize, remapUri, requestPermissions, shouldAllowBridgeAccess, shouldAllowNavigation, shouldAllowRequest, shouldOpenExternalUrl, toPluginUripublic void pluginInitialize()
CommonPluginpluginInitialize in class CommonPluginpublic boolean execute(java.lang.String action,
org.json.JSONArray args,
CallbackContext callbackContext)
throws org.json.JSONException
CommonPluginThis method is called from the WebView thread. To do a non-trivial amount of work, use: cordova.getThreadPool().execute(runnable);
To run on the UI thread, use: cordova.getActivity().runOnUiThread(runnable);
execute in class CommonPluginaction - The action to execute.args - The exec() arguments.callbackContext - The callback context used when calling back into JavaScript.org.json.JSONExceptionpublic static org.json.JSONArray getIPAddress()
throws java.lang.Exception
java.lang.Exception