public class WifiManagerPlugin
extends com.dff.cordova.plugin.common.CommonPlugin
| Modifier and Type | Field and Description |
|---|---|
protected java.util.HashMap<java.lang.String,java.lang.Class<? extends WifiManagerAction>> |
actions |
protected NetworkConnectivityReceiver |
networkConnectivityReceiver |
protected NetworkScanReceiver |
networkScanReceiver |
protected android.net.wifi.WifiManager |
wifiManager |
| Constructor and Description |
|---|
WifiManagerPlugin() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(java.lang.String action,
org.json.JSONArray args,
org.apache.cordova.CallbackContext callbackContext)
Executes the request.
|
void |
onDestroy()
The final call you receive before your activity is destroyed.
|
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.
|
void |
pluginInitialize()
Called after plugin construction and fields have been initialized.
|
onActivityResult, onMessage, onNewIntent, onPause, onReset, onRestoreStateForActivityResult, onResume, onSaveInstanceState, onStopexecute, execute, fromPluginUri, getServiceName, handleOpenForRead, hasPermisssion, initialize, onConfigurationChanged, onOverrideUrlLoading, onReceivedClientCertRequest, onReceivedHttpAuthRequest, privateInitialize, remapUri, requestPermissions, shouldAllowBridgeAccess, shouldAllowNavigation, shouldAllowRequest, shouldOpenExternalUrl, toPluginUriprotected NetworkConnectivityReceiver networkConnectivityReceiver
protected NetworkScanReceiver networkScanReceiver
protected java.util.HashMap<java.lang.String,java.lang.Class<? extends WifiManagerAction>> actions
protected android.net.wifi.WifiManager wifiManager
public void onStart()
com.dff.cordova.plugin.common.CommonPluginonStart in class com.dff.cordova.plugin.common.CommonPluginpublic void onRequestPermissionResult(int requestCode,
java.lang.String[] permissions,
int[] grantResults)
throws org.json.JSONException
org.apache.cordova.CordovaPluginonRequestPermissionResult in class org.apache.cordova.CordovaPluginorg.json.JSONExceptionpublic void pluginInitialize()
pluginInitialize in class com.dff.cordova.plugin.common.CommonPluginpublic void onDestroy()
com.dff.cordova.plugin.common.CommonPluginonDestroy in class com.dff.cordova.plugin.common.CommonPluginpublic boolean execute(java.lang.String action,
org.json.JSONArray args,
org.apache.cordova.CallbackContext callbackContext)
throws org.json.JSONException
This 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 com.dff.cordova.plugin.common.CommonPluginaction - The action to execute.args - The exec() arguments.callbackContext - The callback context used when calling back into JavaScript.org.json.JSONException