IGpioPinProvider.ValueChanged Evento

Definición

Evento que se desencadena cuando el valor de la patilla ha cambiado.

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

Tipo de evento

Se aplica a

Consulte también