Compartilhar via


AudioPlaybackConnection.StateChanged Evento

Definição

Ocorre quando o estado de conexão do AudioPlaybackConnection é alterado.

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

Tipo de evento

Comentários

Verifique a propriedade State do objeto AudioPlaybackConnection passado como o argumento sender para o manipulador de eventos para obter o novo estado de conexão.

Aplica-se a

Confira também