BatteryManager.GetIntProperty(Int32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne la valeur d’une propriété de batterie de type entier.
[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
Paramètres
- id
- Int32
identificateur de la propriété demandée
Retours
valeur de propriété. Si la propriété n’est pas prise en charge ou qu’il existe une autre erreur, retournez (a) 0 si targetSdkVersion < VERSION_CODES.P ou (b) Integer.MIN_VALUE si targetSdkVersion >= VERSION_CODES.P.
- Attributs
Remarques
Retourne la valeur d’une propriété de batterie de type entier.
Java documentation pour android.os.BatteryManager.getIntProperty(int).
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.