HardwareButtons
HardwareButtons
HardwareButtons
HardwareButtons
Class
Definition
Provides access to the phone's hardware buttons.
public : static class HardwareButtonspublic static class HardwareButtonsPublic Static Class HardwareButtons// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows Mobile Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.Phone.PhoneContract (introduced v1)
|
Remarks
Windows Phone 8
This API is supported in native apps only.
Events
BackPressed BackPressed BackPressed BackPressed
Occurs when the user presses the hardware Back button.
public : static event EventHandler BackPressed<BackPressedEventArgs>public static event EventHandler BackPressed<BackPressedEventArgs>Public Static Event BackPressed<BackPressedEventArgs>// You can use this event in JavaScript.
CameraHalfPressed CameraHalfPressed CameraHalfPressed CameraHalfPressed
Occurs when the user presses the hardware camera button halfway.
public : static event EventHandler CameraHalfPressed<CameraEventArgs>public static event EventHandler CameraHalfPressed<CameraEventArgs>Public Static Event CameraHalfPressed<CameraEventArgs>// You can use this event in JavaScript.
CameraPressed CameraPressed CameraPressed CameraPressed
Occurs when the user presses the hardware camera button.
public : static event EventHandler CameraPressed<CameraEventArgs>public static event EventHandler CameraPressed<CameraEventArgs>Public Static Event CameraPressed<CameraEventArgs>// You can use this event in JavaScript.
- See Also
CameraReleased CameraReleased CameraReleased CameraReleased
Occurs when the user releases the hardware camera button.
public : static event EventHandler CameraReleased<CameraEventArgs>public static event EventHandler CameraReleased<CameraEventArgs>Public Static Event CameraReleased<CameraEventArgs>// You can use this event in JavaScript.