[ Version ( since = "0.1.26" ) ]
public bool set_enabled_sync (bool enabled, Cancellable? cancellable = null) throws Error
Enables or disables a device.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
this |
a Device instance. |
enabled |
the enabled state |
cancellable |
a Cancellable or null |
true for success, else false. |