Udostępnij za pośrednictwem


BatteryManager.GetLongProperty(Int32) Method

Definition

Return the value of a battery property of long type If the platform does not provide the property queried, this value will be Long.

[Android.Runtime.Register("getLongProperty", "(I)J", "GetGetLongProperty_IHandler")]
public virtual long GetLongProperty (int id);
[<Android.Runtime.Register("getLongProperty", "(I)J", "GetGetLongProperty_IHandler")>]
abstract member GetLongProperty : int -> int64
override this.GetLongProperty : int -> int64

Parameters

id
Int32

identifier of the requested property

Returns

the property value, or Long.MIN_VALUE if not supported.

Attributes

Remarks

Return the value of a battery property of long type If the platform does not provide the property queried, this value will be Long.MIN_VALUE.

Java documentation for android.os.BatteryManager.getLongProperty(int).

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