Lingua

BatteryManager.GetIntProperty(Int32) Metodo

Definizione

Restituisce il valore di una proprietà della batteria di tipo integer.

[Android.Runtime.Register("getIntProperty", "(I)I", "GetGetIntProperty_IHandler")]
public virtual int GetIntProperty(int id);
[<Android.Runtime.Register("getIntProperty", "(I)I", "GetGetIntProperty_IHandler")>]
abstract member GetIntProperty : int -> int
override this.GetIntProperty : int -> int

Parametri

id
Int32

identificatore della proprietà richiesta

Valori restituiti

valore della proprietà. Se la proprietà non è supportata o si verifica un altro errore, restituire (a) 0 se targetSdkVersion < VERSION_CODES.P o (b) Integer.MIN_VALUE se targetSdkVersion >= VERSION_CODES.P.

Attributi

Commenti

Restituisce il valore di una proprietà della batteria di tipo integer.

per android.os.BatteryManager.getIntProperty(int).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a