Uses of Class
org.praxislive.code.userapi.Ref
Packages that use Ref
-
Uses of Ref in org.praxislive.code.userapi
Methods in org.praxislive.code.userapi that return RefModifier and TypeMethodDescriptionPass the value to the provided Consumer function.Ref.bind(BiConsumer<? super T, V> binder, BiConsumer<? super T, V> unbinder, V bindee) Bind something (usually a callback / listener) to the reference, providing for automatic attachment and removal on reference change, reset or disposal.Ref.clear()Disposes the value and clears initialization.Transform the value using the supplied function.Pass the value to the provided Consumer function if one exists.Initialize the reference, calling the supplier function if a value is needed.Ref.onChange(Consumer<Ref.ChangeEvent<T>> onChangeHandler) Provide a function to handle changes in the Ref value.Provide a function to run on the value whenever the value is being disposed of, either because the Ref has been removed from the code, the root is being stopped, orclearhas been explicitly called.Provide a function to run on the value whenever the Ref is reset - eg.Set the value.Set the value from completion of the providedAsync.Ref.unbind()Clear all bindings added viabind(java.util.function.BiConsumer, java.util.function.BiConsumer, java.lang.Object)from this Ref.Methods in org.praxislive.code.userapi with parameters of type RefModifier and TypeMethodDescriptionvoidRef.Initializer.initialize(Ref<T> ref) Initialize the provided Ref, as well as add handlers for disposal, etc. if required.Method parameters in org.praxislive.code.userapi with type arguments of type Ref