次の方法で共有


GattLocalDescriptor.WriteRequested イベント

定義

書き込みが要求されたときにトリガーされるイベント。

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

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

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

イベントの種類

Windows の要件

アプリの機能
bluetooth

適用対象