com.googlecode.android_scripting.facade
Class WifiFacade
java.lang.Object
com.googlecode.android_scripting.jsonrpc.RpcReceiver
com.googlecode.android_scripting.facade.WifiFacade
public class WifiFacade
- extends RpcReceiver
Wifi functions.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WifiFacade
public WifiFacade(FacadeManager manager)
wifiGetScanResults
@Rpc(description="Returns the list of access points found during the most recent Wifi scan.")
public java.util.List<ScanResult> wifiGetScanResults()
wifiLockAcquireFull
@Rpc(description="Acquires a full Wifi lock.")
public void wifiLockAcquireFull()
wifiLockAcquireScanOnly
@Rpc(description="Acquires a scan only Wifi lock.")
public void wifiLockAcquireScanOnly()
wifiLockRelease
@Rpc(description="Releases a previously acquired Wifi lock.")
public void wifiLockRelease()
wifiStartScan
@Rpc(description="Starts a scan for Wifi access points.",
returns="True if the scan was initiated successfully.")
public java.lang.Boolean wifiStartScan()
checkWifiState
@Rpc(description="Checks Wifi state.",
returns="True if Wifi is enabled.")
public java.lang.Boolean checkWifiState()
toggleWifiState
@Rpc(description="Toggle Wifi on and off.",
returns="True if Wifi is enabled.")
public java.lang.Boolean toggleWifiState(@RpcParameter(name="enabled")@RpcOptional
java.lang.Boolean enabled)
wifiDisconnect
@Rpc(description="Disconnects from the currently active access point.",
returns="True if the operation succeeded.")
public java.lang.Boolean wifiDisconnect()
wifiGetConnectionInfo
@Rpc(description="Returns information about the currently active access point.")
public WifiInfo wifiGetConnectionInfo()
wifiReassociate
@Rpc(description="Reassociates with the currently active access point.",
returns="True if the operation succeeded.")
public java.lang.Boolean wifiReassociate()
wifiReconnect
@Rpc(description="Reconnects to the currently active access point.",
returns="True if the operation succeeded.")
public java.lang.Boolean wifiReconnect()
shutdown
public void shutdown()
- Description copied from class:
RpcReceiver
- Invoked when the receiver is shut down.
- Specified by:
shutdown in class RpcReceiver