共用方式為


BarcodeScannerProviderConnection.HideVideoPreviewRequested 事件

定義

當用戶端應用程式嘗試隱藏影片預覽視窗時引發。

// Register
event_token HideVideoPreviewRequested(TypedEventHandler<BarcodeScannerProviderConnection, BarcodeScannerHideVideoPreviewRequestEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
BarcodeScannerProviderConnection::HideVideoPreviewRequested_revoker HideVideoPreviewRequested(auto_revoke_t, TypedEventHandler<BarcodeScannerProviderConnection, BarcodeScannerHideVideoPreviewRequestEventArgs const&> const& handler) const;
public event TypedEventHandler<BarcodeScannerProviderConnection,BarcodeScannerHideVideoPreviewRequestEventArgs> HideVideoPreviewRequested;
function onHideVideoPreviewRequested(eventArgs) { /* Your code */ }
barcodeScannerProviderConnection.addEventListener("hidevideopreviewrequested", onHideVideoPreviewRequested);
barcodeScannerProviderConnection.removeEventListener("hidevideopreviewrequested", onHideVideoPreviewRequested);
- or -
barcodeScannerProviderConnection.onhidevideopreviewrequested = onHideVideoPreviewRequested;
Public Custom Event HideVideoPreviewRequested As TypedEventHandler(Of BarcodeScannerProviderConnection, BarcodeScannerHideVideoPreviewRequestEventArgs) 

事件類型

適用於