public interface NetworkConnection
Example usage:
NetworkConnection mobileDriver = (NetworkConnection) driver; if (mobileDriver.getNetworkConnection() != ConnectionType.AIRPLANE_MODE) { // enabling Airplane mode mobileDriver.setNetworkConnection(ConnectionType.AIRPLANE_MODE); }
Modifier and Type | Interface and Description |
---|---|
static class |
NetworkConnection.ConnectionType
ConnectionType is a bitmask to represent a device's network connection
|
Modifier and Type | Method and Description |
---|---|
NetworkConnection.ConnectionType |
getNetworkConnection()
Query the driver for the Airplane Mode setting state
|
NetworkConnection.ConnectionType |
setNetworkConnection(NetworkConnection.ConnectionType type)
Set the Connection type Not all connection type combinations are valid for an individual type
of device and the remote endpoint will make a best effort to set the type as requested
|
NetworkConnection.ConnectionType getNetworkConnection()
NetworkConnection.ConnectionType
indicating if the
device is in Airplane ModeNetworkConnection.ConnectionType setNetworkConnection(NetworkConnection.ConnectionType type)
type
- ConnectionType of what the network connection should beNetworkConnection.ConnectionType
of what the
device's network connection isCopyright © 2016. All rights reserved.