Bagikan melalui


GattReadRequest.StateChanged Kejadian

Definisi

Ini adalah peristiwa yang dipicu ketika status permintaan baca diubah.

// Register
event_token StateChanged(TypedEventHandler<GattReadRequest, GattRequestStateChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void StateChanged(event_token const* cookie) const;

// Revoke with event_revoker
GattReadRequest::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<GattReadRequest, GattRequestStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<GattReadRequest,GattRequestStateChangedEventArgs> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
gattReadRequest.addEventListener("statechanged", onStateChanged);
gattReadRequest.removeEventListener("statechanged", onStateChanged);
- or -
gattReadRequest.onstatechanged = onStateChanged;
Public Custom Event StateChanged As TypedEventHandler(Of GattReadRequest, GattRequestStateChangedEventArgs) 

Jenis Acara

Persyaratan Windows

Kemampuan aplikasi
bluetooth

Berlaku untuk