uninhibit_device


Description:

[ Version ( since = "1.10" ) ]
public async bool uninhibit_device (string uid, Cancellable? cancellable) throws Error

Asynchronously requests to remove an inhibition on the device identified by uid.

The uid must be the same unique ID that was sent in the inhibition request.

Only the same program that placed an inhibition on a given device is able to remove the inhibition.

When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call uninhibit_device.end to get the result of the operation.

See uninhibit_device_sync for the synchronous, blocking version of this method.

Parameters:

this

A Manager.

uid

the unique ID of the physical device.

cancellable

A Cancellable or null.

callback

A TaskReadyCallback to call when the request is satisfied or null.

user_data

User data to pass to callback.