Compartilhar via


GattSession.SessionStatusChanged Evento

Definição

Um evento que é disparado quando a sessão GATT status foi alterada.

// 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 de evento

Requisitos do Windows

Funcionalidades do aplicativo
bluetooth

Aplica-se a