Partager via


GattLocalCharacteristic.WriteRequested Événement

Définition

Il s’agit d’un événement qui est déclenché lorsqu’une écriture a été demandée.

// Register
event_token WriteRequested(TypedEventHandler<GattLocalCharacteristic, GattWriteRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
GattLocalCharacteristic::WriteRequested_revoker WriteRequested(auto_revoke_t, TypedEventHandler<GattLocalCharacteristic, GattWriteRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<GattLocalCharacteristic,GattWriteRequestedEventArgs> WriteRequested;
function onWriteRequested(eventArgs) { /* Your code */ }
gattLocalCharacteristic.addEventListener("writerequested", onWriteRequested);
gattLocalCharacteristic.removeEventListener("writerequested", onWriteRequested);
- or -
gattLocalCharacteristic.onwriterequested = onWriteRequested;
Public Custom Event WriteRequested As TypedEventHandler(Of GattLocalCharacteristic, GattWriteRequestedEventArgs) 

Type d'événement

Configuration requise pour Windows

Fonctionnalités de l’application
bluetooth

S’applique à