Targeting System 2.0.0
Plugin for multipurpose targeting and visual effects.
UniRx.IObserver< T > Interface Template Reference

Provides a mechanism for receiving push-based notifications and returning a response. More...

Inheritance diagram for UniRx.IObserver< T >:
UniRx.ISubject< T > UniRx.InternalUtil.DisposedObserver< T > UniRx.InternalUtil.EmptyObserver< T > UniRx.InternalUtil.ListObserver< T > UniRx.InternalUtil.ThrowObserver< T > UniRx.ReadOnlyReactiveProperty< T > UniRx.AsyncSubject< T > UniRx.BehaviorSubject< T > UniRx.ReplaySubject< T > UniRx.Subject< T >

Public Member Functions

TResult OnNext (TValue value)
 Notifies the observer of a new element in the sequence. More...
 
TResult OnError (Exception exception)
 Notifies the observer that an exception has occurred. More...
 
TResult OnCompleted ()
 Notifies the observer of the end of the sequence. More...
 
void OnCompleted ()
 
void OnError (Exception error)
 
void OnNext (T value)
 

Detailed Description

Provides a mechanism for receiving push-based notifications and returning a response.

Template Parameters
TValueThe type of the elements received by the observer. This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
TResultThe type of the result returned from the observer's notification handlers. This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.

Member Function Documentation

◆ OnCompleted() [1/2]

TResult UniRx.IObserver< T >.OnCompleted ( )

◆ OnCompleted() [2/2]

◆ OnError() [1/2]

◆ OnError() [2/2]

TResult UniRx.IObserver< T >.OnError ( Exception  exception)

Notifies the observer that an exception has occurred.

Parameters
exceptionThe exception that occurred.
Returns
Result returned upon observation of an error.

Implemented in UniRx.InternalUtil.ListObserver< T >, UniRx.InternalUtil.EmptyObserver< T >, UniRx.InternalUtil.ThrowObserver< T >, UniRx.InternalUtil.DisposedObserver< T >, UniRx.AsyncSubject< T >, UniRx.BehaviorSubject< T >, UniRx.ReplaySubject< T >, and UniRx.Subject< T >.

◆ OnNext()

TResult UniRx.IObserver< T >.OnNext ( TValue  value)

Notifies the observer of a new element in the sequence.

Parameters
valueThe new element in the sequence.
Returns
Result returned upon observation of a new element.

The documentation for this interface was generated from the following files: