assert_connected


Description:

public void assert_connected () throws DeviceError

Test if device is still connected.

Since GObject properties cannot throw exceptions, this method can be used to confirm that a device is still connected before reading properties.

Exceptions:

DeviceError.NOT_CONNECTED

if device is not connected.