v0.7.0
upower
Linux에서 전원 관리를 수행하는 서비스인 UPower에 연결할 수 있는 클라이언트를 제공합니다.
8좋아요 21.7만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.