GetDefault | getDefault method

Battery.GetDefault method

Gets the default Battery object for the phone.

Syntax


public static Battery GetDefault()

Parameters

This method has no parameters.

Return value

Type: Battery

The default Battery object for the phone.

Requirements (Windows 10 device family)

Device family

Mobile, introduced version 10.0.10240.0

API contract

Windows.Phone.PhoneContract, introduced version 1.0

Namespace

Windows.Phone.Devices.Power
Windows::Phone::Devices::Power [C++]

Metadata

Windows.Phone.PhoneContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Phone.Devices.Power
Windows::Phone::Devices::Power [C++]

Metadata

Windows.WinMD

See also

Battery

 

 

Show:
© 2016 Microsoft