Class ConnectionState
- java.lang.Object
-
- io.appium.java_client.android.connection.ConnectionState
-
public class ConnectionState extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static long
AIRPLANE_MODE_MASK
static long
DATA_MASK
static long
WIFI_MASK
-
Constructor Summary
Constructors Constructor Description ConnectionState(long bitMask)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getBitMask()
boolean
isAirplaneModeEnabled()
Is airplane mode enabled or not.boolean
isDataEnabled()
Is data connection enabled or not.boolean
isWiFiEnabled()
Is Wi-Fi connection enabled or not.
-
-
-
Field Detail
-
AIRPLANE_MODE_MASK
public static final long AIRPLANE_MODE_MASK
- See Also:
- Constant Field Values
-
WIFI_MASK
public static final long WIFI_MASK
- See Also:
- Constant Field Values
-
DATA_MASK
public static final long DATA_MASK
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBitMask
public long getBitMask()
-
isAirplaneModeEnabled
public boolean isAirplaneModeEnabled()
Is airplane mode enabled or not.- Returns:
- true if airplane mode is enabled.
-
isWiFiEnabled
public boolean isWiFiEnabled()
Is Wi-Fi connection enabled or not.- Returns:
- true if Wi-Fi connection is enabled.
-
isDataEnabled
public boolean isDataEnabled()
Is data connection enabled or not.- Returns:
- true if data connection is enabled.
-
-