set_mode_sync
Description:
[ Version ( since = "0.1.2" ) ]
public bool set_mode_sync (DeviceMode mode, Cancellable? cancellable = null) throws Error
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.
Parameters:
this |
a Device instance. |
mode |
The device kind, e.g. VIRTUAL |
cancellable |
a Cancellable or null |
Returns:
|