Trait

io.scalajs.npm.rx

Observer

Related Doc: package rx

Permalink

trait Observer extends Object

The Observer object provides support for push-style iteration over an observable sequence.

The Observer and Objects interfaces provide a generalized mechanism for push-based notification, also known as the observer design pattern. The Observable object represents the object that sends notifications (the provider); the Observer object represents the class that receives them (the observer).

Annotations
@RawJSType() @native()
Linear Supertypes
Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Observer
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def asObserver(): Observer.this.type

    Permalink

    Hides the identity of an observer.

    Hides the identity of an observer.

    returns

    (Observer): An observer that hides the identity of the specified observer.

    Example:
    1. Rx.Observer.prototype.asObserver()

  6. def checked(): Observer.this.type

    Permalink

    Checks access to the observer for grammar violations.

    Checks access to the observer for grammar violations. This includes checking for multiple onError or onCompleted calls, as well as re-entrancy in any of the observer methods.

    If a violation is detected, an Error is thrown from the offending observer method call.

    returns

    (Observer): An observer that checks callbacks invocations against the observer grammar and, if the checks pass, forwards those to the specified observer.

    Example:
    1. Rx.Observer.prototype.checked()

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def notifyOn(scheduler: Scheduler): Observer.this.type

    Permalink

    Schedules the invocation of observer methods on the given scheduler.

    Schedules the invocation of observer methods on the given scheduler.

    scheduler

    (Scheduler): Scheduler to schedule observer messages on.

    returns

    (Observer): Observer whose messages are scheduled on the given scheduler.

    Example:
    1. Rx.Observer.prototype.notifyOn(scheduler)

  20. def onCompleted(): Unit

    Permalink

    Notifies the observer of the end of the sequence.

    Notifies the observer of the end of the sequence.

    Example:
    1. Rx.Observer.prototype.onCompleted()

  21. def onError(error: Error): Unit

    Permalink

    Notifies the observer that an exception has occurred.

    Notifies the observer that an exception has occurred.

    error

    (Any): The error that has occurred.

    Example:
    1. Rx.Observer.prototype.onError(error)

  22. def onNext(value: Any): Unit

    Permalink

    Notifies the observer of a new element in the sequence.

    Notifies the observer of a new element in the sequence.

    value

    (Any): Next element in the sequence.

    Example:
    1. Rx.Observer.prototype.onNext(value)

  23. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  26. def toNotifier(): Function

    Permalink

    Creates a notification callback from an observer.

    Creates a notification callback from an observer.

    returns

    (Function): The function that forwards its input notification to the underlying observer.

  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped