Sleep Method (MobileDevice)

Action

Presses the power button if the screen is on. This method is not supported on iOS.

Syntax

C#
device.Sleep()
VB
device.Sleep()