FwupdClient class

A client that connects to fwupd.

Constructors

FwupdClient({DBusClient? bus})
Creates a new fwupd client connected to the system D-Bus.

Properties

daemonVersion String
The version of the fwupd daemon.
no setter
deviceAdded Stream<FwupdDevice>
Stream of devices as they are added.
no setter
deviceChanged Stream<FwupdDevice>
Stream of devices as they are changed.
no setter
deviceRemoved Stream<FwupdDevice>
Stream of devices as they are removed.
no setter
hashCode int
The hash code for this object.
no setterinherited
hostMachineId String
The machine ID for the host.
no setter
hostProduct String
The product name for the host.
no setter
hostSecurityId String
The security ID for the host.
no setter
interactive bool
True if the daemon is running on an interactive terminal.
no setter
percentage int
The percentage of the current job in process.
no setter
propertiesChanged Stream<List<String>>
Stream of property names as they change.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status FwupdStatus
The status of the fwupd daemon.
no setter
tainted bool
True if the daemon has been tainted with a 3rd party plugin.
no setter

Methods

activate(String id) Future<void>
Activate a firmware update on a device.
clearResults(String id) Future<void>
Clear the results of an offline update.
close() Future<void>
Terminates the connection to the fwupd daemon. If a client remains unclosed, the Dart process may not terminate.
connect() Future<void>
Connects to the fwupd daemon.
getApprovedFirmware() Future<List<String>>
Gets the list of approved firmware checksums
getBlockedFirmware() Future<List<String>>
Gets the list of blocked firmware checksums
getDetails(ResourceHandle handle) Future<Map<FwupdDevice, List<FwupdRelease>>>
Gets details about a firmware file.
getDevices() Future<List<FwupdDevice>>
Gets the devices being managed by fwupd.
getDowngrades(String deviceId) Future<List<FwupdRelease>>
getPlugins() Future<List<FwupdPlugin>>
Gets the plugins supported by fwupd.
getReleases(String deviceId) Future<List<FwupdRelease>>
getRemotes() Future<List<FwupdRemote>>
Gets the remotes configured in fwupd.
getUpgrades(String deviceId) Future<List<FwupdRelease>>
install(String id, ResourceHandle handle, {Set<FwupdInstallFlag> flags = const {}}) Future<void>
Schedule a firmware to be installed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setApprovedFirmware(List<String> checksums) Future<void>
Sets the list of approved firmware checksums
setBlockedFirmware(List<String> checksums) Future<void>
Sets the list of blocked firmware checksums
toString() String
A string representation of this object.
inherited
unlock(String id) Future<void>
Unlock a device to allow firmware access.
verify(String id) Future<void>
Verify firmware on a device.
verifyUpdate(String id) Future<void>
Update the cryptographic hash stored for a device.

Operators

operator ==(Object other) bool
The equality operator.
inherited