Skip to content

SignalListener

interface SignalListener<T>
Package: dev.joid.lib.signal · Module: core · Source: SignalListener.java

Receives the value of a signal after each change.

Give one to Signal.onChange, as a lambda.

ReturnsSignatureSummary
voidapply(T value) abstractReceives the value after a change, on the render thread.

void apply(T value) abstract

Receives the value after a change, on the render thread.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page