callGetHistory method
Invokes org.freedesktop.UPower.Device.GetHistory()
Implementation
Future<List<List<DBusValue>>> callGetHistory(
String type,
int timespan,
int resolution, {
bool noAutoStart = false,
bool allowInteractiveAuthorization = false,
}) async {
var result = await callMethod(
'org.freedesktop.UPower.Device',
'GetHistory',
[DBusString(type), DBusUint32(timespan), DBusUint32(resolution)],
replySignature: DBusSignature('a(udu)'),
noAutoStart: noAutoStart,
allowInteractiveAuthorization: allowInteractiveAuthorization,
);
return result.returnValues[0]
.asArray()
.map((child) => child.asStruct())
.toList();
}