Click or drag to resize
Ranorex

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
Syntax
public virtual void EnableWifi(
	bool enabled,
	int forMilliseconds
)

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
ExceptionCondition
ActionFailedExceptionThrown if invoking the action failed.
See Also