ShutterKeyHalfPressed Event
Collapse the table of content
Expand the table of content

CameraButtons.ShutterKeyHalfPressed Event

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Occurs when the hardware shutter button is pressed and held.

Namespace:  Microsoft.Devices
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

'Declaration
Public Shared Event ShutterKeyHalfPressed As EventHandler

This event is triggered when the hardware shutter button is pressed and held for approximately 800 milliseconds.

To account for the Windows Phone execution model, add the event handler for this event in the OnNavigatedTo(NavigationEventArgs) method. To help release memory related to the camera, remove the event handler for this event in the OnNavigatingFrom(NavigatingCancelEventArgs). For more information about how to use this member for capturing a photo, see How to access the hardware camera shutter button in Windows Phone 8.

This event can also be used for capturing video. When capturing video, the CaptureSource.Start method must be called prior to the hardware shutter button press. If the capture source has not started, this event will not fire. For more information about capturing video in your Windows Phone application, see How to record video in a camera app for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft