AppCaptureState.MicrophoneCaptureStateChanged Event

Definition

Occurs when the state of microphone capture for app capture changes.

// Register
event_token MicrophoneCaptureStateChanged(TypedEventHandler<AppCaptureState, AppCaptureMicrophoneCaptureStateChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AppCaptureState::MicrophoneCaptureStateChanged_revoker MicrophoneCaptureStateChanged(auto_revoke_t, TypedEventHandler<AppCaptureState, AppCaptureMicrophoneCaptureStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<AppCaptureState,AppCaptureMicrophoneCaptureStateChangedEventArgs> MicrophoneCaptureStateChanged;
function onMicrophoneCaptureStateChanged(eventArgs) { /* Your code */ }
appCaptureState.addEventListener("microphonecapturestatechanged", onMicrophoneCaptureStateChanged);
appCaptureState.removeEventListener("microphonecapturestatechanged", onMicrophoneCaptureStateChanged);
- or -
appCaptureState.onmicrophonecapturestatechanged = onMicrophoneCaptureStateChanged;
Public Custom Event MicrophoneCaptureStateChanged As TypedEventHandler(Of AppCaptureState, AppCaptureMicrophoneCaptureStateChangedEventArgs) 

Event Type

Windows requirements

App capabilities
appCaptureSettings

Applies to