共用方式為


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

屬性值

適用於