次の方法で共有


GattReadRequest.StateChanged イベント

定義

これは、読み取り要求の状態が変更されたときにトリガーされるイベントです。

// 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) 

イベントの種類

Windows の要件

アプリの機能
bluetooth

適用対象