Share via


SpatialInteractionController.TryGetBatteryReport Method

Definition

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

public:
 virtual BatteryReport ^ TryGetBatteryReport() = TryGetBatteryReport;
BatteryReport TryGetBatteryReport();
public BatteryReport TryGetBatteryReport();
function tryGetBatteryReport()
Public Function TryGetBatteryReport () As BatteryReport

Returns

Information about the motion controller's current battery state, if available; otherwise, null.

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Applies to