TrySink

trait TrySink[T <: Txn[T]] extends AuralAttribute[T]
trait AuralViewBase[T, Target[T]]
trait ViewBase[T]
trait Disposable[T]
trait Observable[T, State]
class Object
trait Matchable
class Any

Type members

Inherited types

type Repr <: Form[T]
Inherited from
AuralViewBase

Value members

Abstract methods

def tryUpdate(value: Any)(tx: T): Boolean

Inherited methods

def dispose(tx: T): Unit
Inherited from
Disposable
def key: String

The key into the sink's attribute map.

The key into the sink's attribute map.

Inherited from
AuralAttribute
def obj(tx: T): Repr
Inherited from
AuralViewBase
def preferredNumChannels(tx: T): Int

Or -1 if the number of channels cannot be determined.

Or -1 if the number of channels cannot be determined.

Inherited from
AuralAttribute
def prepare(timeRef: Option)(tx: T): Unit

Prepares the view to be able to run.

Prepares the view to be able to run.

Value Params
timeRef

an optional context of temporal position

Inherited from
AuralViewBase
def react(fun: T => State => Unit)(tx: T): Disposable[T]

Registers a live observer with this observable. The method is called with the observing function which receives the observable's update message of type A, and the method generates an opaque Disposable instance, which may be used to remove the observer eventually (through the dispose method).

Registers a live observer with this observable. The method is called with the observing function which receives the observable's update message of type A, and the method generates an opaque Disposable instance, which may be used to remove the observer eventually (through the dispose method).

Inherited from
Observable
final def reactNow(fun: T => State => Unit)(tx: T): Disposable[T]

Like react, but also invokes the function with the current state immediately.

Like react, but also invokes the function with the current state immediately.

Inherited from
ViewBase
def run(timeRef: Option, target: Target[T])(tx: T): Unit

Runs the view, whatever that means for the particular object. If the object is not prepared and needs preparing, the view will take care of running the prepare step (without mapping any attr map).

Runs the view, whatever that means for the particular object. If the object is not prepared and needs preparing, the view will take care of running the prepare step (without mapping any attr map).

Inherited from
AuralViewBase
def state(tx: T): State
Inherited from
ViewBase
def stop(tx: T): Unit
Inherited from
ViewBase
def targetOption(tx: T): Option[Target[T]]
Inherited from
AuralAttribute