View Source ExMobileDevice.Diagnostics (exmobiledevice v0.2.23)

Services for shutting down or restarting a device.

Summary

Functions

Restart the specified device.

Shutdown the specified device.

Send the specified device to sleep.

Functions

restart(udid)

@spec restart(String.t()) :: :ok | {:error, any()}

Restart the specified device.

shutdown(udid)

@spec shutdown(String.t()) :: :ok | {:error, any()}

Shutdown the specified device.

sleep(udid)

@spec sleep(String.t()) :: :ok | {:error, any()}

Send the specified device to sleep.