OpenState

org.getshaka.shaka.OpenState
class OpenState[V](initialValue: V) extends State[V]

Open state that must be encapsulated.

Type parameters

V

the value.

Value parameters

initialValue

The State's initial value, discarded if the StorageManager can fetch a value.

Attributes

Graph
Supertypes
class State[V]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def setValue(newValue: V): Unit

Sets this State's new value. All depdendent Bindings are recomputed.

Sets this State's new value. All depdendent Bindings are recomputed.

Attributes

Definition Classes
override def setValue(oldToNew: V => V): Unit

Attributes

Definition Classes
override def value: V

Returns this State's value

Returns this State's value

Attributes

Definition Classes

Inherited methods

def bind(builder: () ?=> V)(using pe: Element, pb: Binding[_]): Unit

Construct a Binding for DOM Nodes

Construct a Binding for DOM Nodes

Attributes

Inherited from:
State
def bindProps(builder: () ?=> V)(using pb: Binding[_]): Unit

Construct a lighter-weight Binding for CSS/JS Props.

Construct a lighter-weight Binding for CSS/JS Props.

Attributes

Inherited from:
State
def removeBinding(b: Binding[V]): Unit

Removes a Binding from this State.

Removes a Binding from this State.

Attributes

Inherited from:
State