Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HardwareButtons class

Provides access to the phone's hardware buttons.

Syntax


var hardwareButtons = Windows.Phone.UI.Input.HardwareButtons;

Members

The HardwareButtons class has these types of members:

Events

The HardwareButtons class has these events.

EventDescription
BackPressed Occurs when the user presses the hardware Back button.
CameraHalfPressed Occurs when the user presses the hardware camera button halfway.
CameraPressed Occurs when the user presses the hardware camera button.
CameraReleased Occurs when the user releases the hardware camera button.

 

Remarks

Windows Phone 8

This API is supported in native apps only.

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.UI.Input
Windows::Phone::UI::Input [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.UI.Input
Windows::Phone::UI::Input [C++]

Metadata

Windows.WinMD

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

See also

Object

 

 

Show: