MediaCapture.FocusChanged イベント

定義

キャプチャ デバイスがフォーカスを変更したときに発生します。

// Register
event_token FocusChanged(TypedEventHandler<MediaCapture, MediaCaptureFocusChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MediaCapture::FocusChanged_revoker FocusChanged(auto_revoke_t, TypedEventHandler<MediaCapture, MediaCaptureFocusChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<MediaCapture,MediaCaptureFocusChangedEventArgs> FocusChanged;
function onFocusChanged(eventArgs) { /* Your code */ }
mediaCapture.addEventListener("focuschanged", onFocusChanged);
mediaCapture.removeEventListener("focuschanged", onFocusChanged);
- or -
mediaCapture.onfocuschanged = onFocusChanged;
Public Custom Event FocusChanged As TypedEventHandler(Of MediaCapture, MediaCaptureFocusChangedEventArgs) 

イベントの種類

Windows の要件

アプリの機能
backgroundMediaRecording

適用対象