MediaCapture.FocusChanged MediaCapture.FocusChanged MediaCapture.FocusChanged MediaCapture.FocusChanged MediaCapture.FocusChanged Event

Definition

Occurs when the capture device changes focus.

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

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

// Revoke with event_revoker
FocusChanged_revoker FocusChanged(auto_revoke_t, TypedEventHandler<MediaCapture, MediaCaptureFocusChangedEventArgs> const& handler) const;
public event TypedEventHandler<MediaCapture, MediaCaptureFocusChangedEventArgs> FocusChanged
Public Event FocusChanged As TypedEventHandler (Of MediaCapture, MediaCaptureFocusChangedEventArgs)
function onFocusChanged(eventArgs){/* Your code */}


mediaCapture.addEventListener("focuschanged", onFocusChanged);
mediaCapture.removeEventListener("focuschanged", onFocusChanged);