inhibit


Description:

[ Version ( since = "1.8.11" ) ]
public string inhibit (string reason, Cancellable? cancellable = null) throws Error

Marks all devices as unavailable for update.

Update is only available if there is no other inhibit imposed by other applications or by the system (e.g. low power state).

The same application can inhibit the system multiple times.

Parameters:

this

a Client

reason

the inhibit reason, e.g. `user active`

cancellable

optional Cancellable

Returns:

a string to use for [method@FwupdClient.uninhibit_async], or null for failure