com.googlecode.android_scripting.facade
Class WifiFacade

java.lang.Object
  extended by com.googlecode.android_scripting.jsonrpc.RpcReceiver
      extended by com.googlecode.android_scripting.facade.WifiFacade

public class WifiFacade
extends RpcReceiver

Wifi functions.


Constructor Summary
WifiFacade(FacadeManager manager)
           
 
Method Summary
 java.lang.Boolean checkWifiState()
           
 void shutdown()
          Invoked when the receiver is shut down.
 java.lang.Boolean toggleWifiState(java.lang.Boolean enabled)
           
 java.lang.Boolean wifiDisconnect()
           
 WifiInfo wifiGetConnectionInfo()
           
 java.util.List<ScanResult> wifiGetScanResults()
           
 void wifiLockAcquireFull()
           
 void wifiLockAcquireScanOnly()
           
 void wifiLockRelease()
           
 java.lang.Boolean wifiReassociate()
           
 java.lang.Boolean wifiReconnect()
           
 java.lang.Boolean wifiStartScan()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WifiFacade

public WifiFacade(FacadeManager manager)
Method Detail

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