GattReadRequest.StateChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This is an event that is triggered when the read request state was changed.
// 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)
Event Type
Windows requirements
App capabilities |
bluetooth
|