AudioPlaybackConnection.StateChanged 事件

定义

AudioPlaybackConnection 的连接状态更改时发生。

// Register
event_token StateChanged(TypedEventHandler<AudioPlaybackConnection, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
AudioPlaybackConnection::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<AudioPlaybackConnection, IInspectable const&> const& handler) const;
public event TypedEventHandler<AudioPlaybackConnection,object> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
audioPlaybackConnection.addEventListener("statechanged", onStateChanged);
audioPlaybackConnection.removeEventListener("statechanged", onStateChanged);
- or -
audioPlaybackConnection.onstatechanged = onStateChanged;
Public Custom Event StateChanged As TypedEventHandler(Of AudioPlaybackConnection, Object) 

事件类型

注解

检查作为发送方参数传递给事件处理程序的 AudioPlaybackConnection 对象的 State 属性,以获取新的连接状态。

适用于

另请参阅