Bagikan melalui


AudioPlaybackConnection.StateChanged Kejadian

Definisi

Terjadi ketika status koneksi AudioPlaybackConnection berubah.

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

Jenis Acara

Keterangan

Periksa properti Status objek AudioPlaybackConnection yang diteruskan sebagai argumen pengirim ke penanganan aktivitas untuk mendapatkan status koneksi baru.

Berlaku untuk

Lihat juga