[ Version ( since = "0.1.2" ) ]
public bool set_mode_sync (DeviceMode mode, Cancellable? cancellable = null) throws Error
Sets the device mode.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
| this |
a Device instance. |
| mode |
The device kind, e.g. VIRTUAL |
| cancellable |
a Cancellable or null |
|
|