set_enabled_sync


Description:

[ 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.

Parameters:

this

a Device instance.

enabled

the enabled state

cancellable

a Cancellable or null

Returns:

true for success, else false.