IBattery.State 属性

定义

获取设备的充电状态。

public:
 property Microsoft::Maui::Devices::BatteryState State { Microsoft::Maui::Devices::BatteryState get(); };
public Microsoft.Maui.Devices.BatteryState State { get; }
member this.State : Microsoft.Maui.Devices.BatteryState
Public ReadOnly Property State As BatteryState

属性值

适用于