-
public interface NetworkThe interface to work with network settings.
Required: Started AdbServer 1. Download a file "kaspresso/artifacts/adbserver-desktop.jar" 2. Start AdbServer => input in cmd "java jar path_to_file/adbserver-desktop.jar" Methods demanding to use AdbServer in the default implementation of this interface are marked. But nobody can't deprecate you to write implementation that doesn't require AdbServer.
-
-
Method Summary
Modifier and Type Method Description abstract Unitenable()Enables wi-fi and mobile data using adb. abstract Unitdisable()Disables wi-fi and mobile data using adb. abstract UnittoggleMobileData(Boolean enable)Toggles only mobile data. abstract UnittoggleWiFi(Boolean enable)Toggles only wi-fi. -
-
Method Detail
-
toggleMobileData
abstract Unit toggleMobileData(Boolean enable)
Toggles only mobile data. Note: it works only if flight mode is off.
-
toggleWiFi
abstract Unit toggleWiFi(Boolean enable)
Toggles only wi-fi. Note: it works only if flight mode is off.
-
-
-
-