IGameControllerBatteryInfo
IGameControllerBatteryInfo
IGameControllerBatteryInfo
IGameControllerBatteryInfo
Interface
Definition
Interface that allows game controller (or headset) classes to query for information about the current battery state, regardless of their actual type (gamepad, racing wheel, flight stick, and so on).
public : interface IGameControllerBatteryInfopublic interface IGameControllerBatteryInfoPublic Interface IGameControllerBatteryInfo// You can use this interface in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 Creators Update (introduced v10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v4)
|
Methods
TryGetBatteryReport() TryGetBatteryReport() TryGetBatteryReport() TryGetBatteryReport()
Gets information about the game controller's current battery state.
public : BatteryReport TryGetBatteryReport()public BatteryReport TryGetBatteryReport()Public Function TryGetBatteryReport() As BatteryReport// You can use this method in JavaScript.
Returns
Information about the game controller's current battery state.