共用方式為


AdvancedPhotoCapture.OptionalReferencePhotoCaptured 事件

定義

在支援此功能的裝置上擷取進階相片作業的參考相片時引發。

// 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) 

事件類型

備註

某些裝置支援從擷取作業傳回參考相片,而呼叫應用程式可以在擷取或處理作業的所有影像畫面之前取用。 在不支援傳回參照相片的裝置上,永遠不會引發此事件。

適用於