MediaCapture.FocusChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the capture device changes focus.
// 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)
Event Type
Windows requirements
App capabilities |
backgroundMediaRecording
|
Applies to
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro