[ Version ( since = "0.1.26" ) ]
public async bool set_enabled (bool enabled, Cancellable? cancellable) throws Error
Enables or disables a device.
this |
a Device instance. |
enabled |
the enabled state |
cancellable |
a Cancellable, or null |
callback |
the function to run on completion |
user_data |
the data to pass to |