AudioPlaybackConnection.StateChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当 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)
事件类型
TypedEventHandler<AudioPlaybackConnection,IInspectable>
注解
检查作为发送方参数传递给事件处理程序的 AudioPlaybackConnection 对象的 State 属性,以获取新的连接状态。