IGameControllerBatteryInfo 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 IGameControllerBatteryInfo
struct winrt::Windows::Gaming::Input::IGameControllerBatteryInfo
public interface IGameControllerBatteryInfo
Public Interface IGameControllerBatteryInfo
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
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() TryGetBatteryReport()

Gets information about the game controller's current battery state.