IGpioPinProvider.ValueChanged 事件

定义

当引脚的值发生更改时触发的事件。

// Register
event_token ValueChanged(TypedEventHandler<IGpioPinProvider, GpioPinProviderValueChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
IGpioPinProvider::ValueChanged_revoker ValueChanged(auto_revoke_t, TypedEventHandler<IGpioPinProvider, GpioPinProviderValueChangedEventArgs const&> const& handler) const;
event TypedEventHandler<IGpioPinProvider,GpioPinProviderValueChangedEventArgs> ValueChanged;
function onValueChanged(eventArgs) { /* Your code */ }
iGpioPinProvider.addEventListener("valuechanged", onValueChanged);
iGpioPinProvider.removeEventListener("valuechanged", onValueChanged);
- or -
iGpioPinProvider.onvaluechanged = onValueChanged;
Event ValueChanged As TypedEventHandler(Of IGpioPinProvider, GpioPinProviderValueChangedEventArgs) 

事件类型

适用于

另请参阅