語言

BatteryManager.GetLongProperty(Int32) 方法

定義

回傳多頭型電池屬性的值。如果平台未提供查詢的屬性,該值將為多頭。

[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

參數

id
Int32

請求屬性的識別碼

傳回

房產價值,或若無支持則Long.MIN_VALUE。

屬性

備註

回傳長型電池屬性的值。如果平台未提供查詢的屬性,該值將被Long.MIN_VALUE。

Java 文件 android.os.BatteryManager.getLongProperty(int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於