IGpioPinProvider.ValueChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Event that fires when the value of the pin has changed.
// 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)