io.appium.java_client
Class NetworkConnectionSetting

java.lang.Object
  extended by io.appium.java_client.NetworkConnectionSetting

public class NetworkConnectionSetting
extends Object

for use with setting Network Connections on a mobile device. Each network option can be enabled or disabled. Current network options available: Airplane Mode, Wifi, Data


Field Summary
 int value
           
 
Constructor Summary
NetworkConnectionSetting(boolean airplaneMode, boolean wifi, boolean data)
           
NetworkConnectionSetting(int bitmask)
          Instantiate Network Connection Settings with the straight-up bitmask.
 
Method Summary
 boolean airplaneModeEnabled()
           
 boolean dataEnabled()
           
 boolean equals(Object obj)
           
 int hashCode()
           
 void setAirplaneMode(boolean enable)
           
 void setData(boolean enable)
           
 void setWifi(boolean enable)
           
 String toString()
           
 boolean wifiEnabled()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public int value
Constructor Detail

NetworkConnectionSetting

public NetworkConnectionSetting(boolean airplaneMode,
                                boolean wifi,
                                boolean data)
Parameters:
airplaneMode - boolean for airplane mode enabled
wifi - boolean for wifi enabled
data - boolean for data enabled

NetworkConnectionSetting

public NetworkConnectionSetting(int bitmask)
Instantiate Network Connection Settings with the straight-up bitmask. See the Mobile JSON Wire Protocol spec for details.

Parameters:
bitmask -
Method Detail

airplaneModeEnabled

public boolean airplaneModeEnabled()

wifiEnabled

public boolean wifiEnabled()

dataEnabled

public boolean dataEnabled()

setAirplaneMode

public void setAirplaneMode(boolean enable)

setWifi

public void setWifi(boolean enable)

setData

public void setData(boolean enable)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All rights reserved.