v0.7.0
upower
लिनक्स पर बैटरी प्रबंधन करने वाली सेवा - UPower से जुड़ने के लिए एक क्लाइंट प्रदान करता है।
8लाइक 2.2 लाख30-दिन डाउनलोड160Pub अंक
Linux
[UPower](https://upower.freedesktop.org/) से जुड़ने के लिए एक क्लाइंट प्रदान करता है - लिनक्स पर बिजली प्रबंधन करने वाली सेवा।
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Provides a client to connect to UPower - the service that does power management on Linux.
import 'package:upower/upower.dart';
var client = UPowerClient();
await client.connect();
print('Running UPower ${client.daemonVersion}');
print('System state: ${client.displayDevice.state}');
print('Devices:');
for (var device in client.devices) {
print(' ${device.type} ${device.percentage}%');
}
await client.close();
We welcome contributions! See the contribution guide for more details.