共用方式為


AppBroadcastState.MicrophoneCaptureStateChanged 事件

定義

發生于麥克風擷取狀態變更時。

// Register
event_token MicrophoneCaptureStateChanged(TypedEventHandler<AppBroadcastState, AppBroadcastMicrophoneCaptureStateChangedEventArgs const&> const& handler) const;

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

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

事件類型

Windows 需求

應用程式功能
appBroadcast appBroadcastSettings

適用於