AudioPlaybackConnection.StateChanged Event

Definition

Occurs when the connection state of the AudioPlaybackConnection changes.

// 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) 

Event Type

Remarks

Check the State property of the AudioPlaybackConnection object passed as the sender argument to the event handler to get the new connection state.

Applies to

See also