BlueZBatteryProvider class
Object to register batteries.
Constructors
- BlueZBatteryProvider.new(BlueZClient _client, DBusObjectPath path)
Properties
- client ↔ DBusClient?
-
The client this object is being exported by.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
interfacesAndProperties
→ Map<
String, Map< String, DBusValue> > -
Interfaces and properties of this object.
This only requires overriding if using this object with the org.freedesktop.DBus.ObjectManager interface.
no setterinherited
- isObjectManager → bool
-
True if this object exposes the org.freedesktop.DBus.ObjectManager interface.
finalinherited
- path → DBusObjectPath
-
The path this object is registered on.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addBattery(
BlueZDevice device, {int percentage = 0, String source = ''}) → Future< BlueZBattery> -
Registers a new battery attached to a
device
.percentage
is the amount of charge in this battery. If provided,source
describes where the battery information comes from. -
emitInterfacesAdded(
DBusObjectPath path, Map< String, Map< interfacesAndProperties) → Future<String, DBusValue> >void> -
Emits org.freedesktop.DBus.ObjectManager.InterfacesAdded on this object.
path
is the path to the object that has been added or changed.interfacesAndProperties
is the interfaces added to the object atpath
and the properties this object has.inherited -
emitInterfacesRemoved(
DBusObjectPath path, Iterable< String> interfaces) → Future<void> -
Emits org.freedesktop.DBus.ObjectManager.InterfacesRemoved on this object.
path
is the path to the object is being removed or changed.interfaces
is the names of the interfaces being removed from the object atpath
.inherited -
emitPropertiesChanged(
String interface, {Map< String, DBusValue> changedProperties = const {}, List<String> invalidatedProperties = const []}) → Future<void> -
Emits org.freedesktop.DBus.Properties.PropertiesChanged on this object.
inherited
-
emitSignal(
String interface, String name, [Iterable< DBusValue> values = const []]) → Future<void> -
Emits a signal on this object.
inherited
-
getAllProperties(
String interface) → Future< DBusMethodResponse> -
Called when all properties are requested on this object. On success, return
DBusGetAllPropertiesResponse
.inherited -
getProperty(
String interface, String name) → Future< DBusMethodResponse> -
Called when a property is requested on this object. On success, return
DBusGetPropertyResponse
.inherited -
handleMethodCall(
DBusMethodCall methodCall) → Future< DBusMethodResponse> -
Called when a method call is received on this object.
inherited
-
introspect(
) → List< DBusIntrospectInterface> -
Called to get introspection information about this object.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeBattery(
BlueZBattery battery) → Future< void> -
Removes a
battery
previously added with addBattery. -
setProperty(
String interface, String name, DBusValue value) → Future< DBusMethodResponse> -
Called when a property is set on this object. On success, return
DBusMethodSuccessResponse
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited