Interface HasNetworkConnection
-
- All Superinterfaces:
CanRememberExtensionPresence,ExecutesMethod
- All Known Implementing Classes:
AndroidDriver,FlutterAndroidDriver
public interface HasNetworkConnection extends ExecutesMethod, CanRememberExtensionPresence
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ConnectionStategetConnection()Get the current network settings of the device.default ConnectionStatesetConnection(ConnectionState connection)Set the network connection of the device.-
Methods inherited from interface io.appium.java_client.CanRememberExtensionPresence
assertExtensionExists, markExtensionAbsence
-
Methods inherited from interface io.appium.java_client.ExecutesMethod
execute, execute
-
-
-
-
Method Detail
-
setConnection
default ConnectionState setConnection(ConnectionState connection)
Set the network connection of the device.- Parameters:
connection- The bitmask of the desired connection- Returns:
- Connection object, which represents the resulting state
-
getConnection
default ConnectionState getConnection()
Get the current network settings of the device.- Returns:
- Connection object, which lets you to inspect the current status
-
-