GattSession.SessionStatusChanged Evento
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Evento che viene attivato quando lo stato della sessione GATT è cambiato.
// Register
event_token SessionStatusChanged(TypedEventHandler<GattSession, GattSessionStatusChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void SessionStatusChanged(event_token const* cookie) const;
// Revoke with event_revoker
GattSession::SessionStatusChanged_revoker SessionStatusChanged(auto_revoke_t, TypedEventHandler<GattSession, GattSessionStatusChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<GattSession,GattSessionStatusChangedEventArgs> SessionStatusChanged;
function onSessionStatusChanged(eventArgs) { /* Your code */ }
gattSession.addEventListener("sessionstatuschanged", onSessionStatusChanged);
gattSession.removeEventListener("sessionstatuschanged", onSessionStatusChanged);
- or -
gattSession.onsessionstatuschanged = onSessionStatusChanged;
Public Custom Event SessionStatusChanged As TypedEventHandler(Of GattSession, GattSessionStatusChangedEventArgs)
Tipo evento
Requisiti Windows
Funzionalità dell'app |
bluetooth
|