Udostępnij za pośrednictwem


AdvancedPhotoCapture.OptionalReferencePhotoCaptured Event

Definition

Raised when a reference photo for the advanced photo operation has been captured, on devices that support this feature.

// Register
event_token OptionalReferencePhotoCaptured(TypedEventHandler<AdvancedPhotoCapture, OptionalReferencePhotoCapturedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AdvancedPhotoCapture::OptionalReferencePhotoCaptured_revoker OptionalReferencePhotoCaptured(auto_revoke_t, TypedEventHandler<AdvancedPhotoCapture, OptionalReferencePhotoCapturedEventArgs const&> const& handler) const;
public event TypedEventHandler<AdvancedPhotoCapture,OptionalReferencePhotoCapturedEventArgs> OptionalReferencePhotoCaptured;
function onOptionalReferencePhotoCaptured(eventArgs) { /* Your code */ }
advancedPhotoCapture.addEventListener("optionalreferencephotocaptured", onOptionalReferencePhotoCaptured);
advancedPhotoCapture.removeEventListener("optionalreferencephotocaptured", onOptionalReferencePhotoCaptured);
- or -
advancedPhotoCapture.onoptionalreferencephotocaptured = onOptionalReferencePhotoCaptured;
Public Custom Event OptionalReferencePhotoCaptured As TypedEventHandler(Of AdvancedPhotoCapture, OptionalReferencePhotoCapturedEventArgs) 

Event Type

Remarks

Some devices support returning a reference photo from the capture operation that can be consumed by the calling app before all image frames for the operation have been captured or processed. On devices that do not support returning a reference photo, this event is never raised.

Applies to