MediaCapture.PhotoConfirmationCaptured Event

Definition

Occurs when a photo confirmation frame is captured.

// Register
event_token PhotoConfirmationCaptured(TypedEventHandler<MediaCapture, PhotoConfirmationCapturedEventArgs const &> const& handler) const;

// Revoke with event_token
void PhotoConfirmationCaptured(event_token const* cookie) const;

// Revoke with event_revoker
PhotoConfirmationCaptured_revoker PhotoConfirmationCaptured(auto_revoke_t, TypedEventHandler<MediaCapture, PhotoConfirmationCapturedEventArgs const &> const& handler) const;
public event TypedEventHandler<MediaCapture,PhotoConfirmationCapturedEventArgs> PhotoConfirmationCaptured;
function onPhotoConfirmationCaptured(eventArgs) { /* Your code */ }
mediaCapture.addEventListener("photoconfirmationcaptured", onPhotoConfirmationCaptured);
mediaCapture.removeEventListener("photoconfirmationcaptured", onPhotoConfirmationCaptured);
- or -
mediaCapture.onphotoconfirmationcaptured = onPhotoConfirmationCaptured;
Public Custom Event PhotoConfirmationCaptured As TypedEventHandler(Of MediaCapture, PhotoConfirmationCapturedEventArgs) 

Windows 10 requirements

App capabilities
backgroundMediaRecording

Remarks

The CapturedFrame object passed to this event contains raw pixel data and therefore must be manually copied into the pixel buffer of a bitmap. For information on how to do this, see the Remarks section of the Frame property.

Applies to