다음을 통해 공유


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

적용 대상