 | AndroidAppEnableWifi Method |
Enable or disable network interface of the device. Give a optional time to switch back to the initial state.
Namespace:
Ranorex
Assembly:
Ranorex.Plugin.Mobile (in Ranorex.Plugin.Mobile.dll) Version: 12.7.4-git.38314c06
Syntaxpublic virtual void EnableWifi(
bool enabled,
int forMilliseconds
)
Public Overridable Sub EnableWifi (
enabled As Boolean,
forMilliseconds As Integer
)
Parameters
- enabled
- Type: SystemBoolean
Enables or disables the network interface. - forMilliseconds
- Type: SystemInt32
Give an optional time for the state change. Use -1 to indicate that the state switch should be permanent.
Exceptions
See Also