DoubleProperty

open class DoubleProperty(initialValue: Number = 0.0) : Property<Double>

A DoubleProperty.

Parameters

initialValue

Initial Value. Default: 0.0.

Constructors

Link copied to clipboard
fun DoubleProperty(initialValue: Number = 0.0)

Creates a DoubleProperty with given initial value.

Functions

Link copied to clipboard
fun addListener(listener: ValueObserver<Double>)

Adds a listener silently.

Link copied to clipboard
fun addListenerAndInvoke(initialValue: Double, listener: (Double, Double) -> Unit)

Adds a listener and calls ValueObserver.update on this new listener with given initial value.

Link copied to clipboard
fun clearListeners()

Removes all listeners.

Link copied to clipboard
fun notifyUnchanged()

Notifies all listeners with current value.

Link copied to clipboard
fun removeListener(listener: ValueObserver<Double>): Boolean

Removes a listener.

Properties

Link copied to clipboard
open override var value: Double

Value of this property.