Share via


IGpioPinProvider.ValueChanged Event

Definition

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) 

Event Type

Applies to

See also