inhibit_device_sync


Description:

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

Synchronously requests to add an inhibition on the device identified by uid.

The uid must be the unique ID retrieved from an existing Modem using get_device. The caller should keep track of this uid and use it in the uninhibit_device_sync call when the inhibition is no longer required.

The inhibition added with this method may also be automatically removed when the caller program disappears from the bus (e.g. if the program ends before having called uninhibit_device_sync explicitly).

See inhibit_device for the asynchronous version of this method.

Parameters:

this

A Manager.

uid

the unique ID of the physical device.

cancellable

A Cancellable or null.

Returns:

true if the call succeeded, false if error is set.