Sdílet prostřednictvím


PowerManager.BatteryDischargePrediction Property

Definition

Returns the current battery life remaining estimate.

public virtual Java.Time.Duration? BatteryDischargePrediction { [Android.Runtime.Register("getBatteryDischargePrediction", "()Ljava/time/Duration;", "GetGetBatteryDischargePredictionHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getBatteryDischargePrediction", "()Ljava/time/Duration;", "GetGetBatteryDischargePredictionHandler", ApiSince=31)>]
member this.BatteryDischargePrediction : Java.Time.Duration

Property Value

The estimated battery life remaining as a Duration. Will be null if the device is powered, charging, or an error was encountered.

Attributes

Remarks

Returns the current battery life remaining estimate.

Java documentation for android.os.PowerManager.getBatteryDischargePrediction().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to