Targeting System 2.0.0
Plugin for multipurpose targeting and visual effects.
|
Represents a notification to an observer. More...
Public Member Functions | |
abstract bool | Equals (Notification< T > other) |
Determines whether the current Notification<T> object has the same observer message payload as a specified Notification<T> value. More... | |
override bool | Equals (object obj) |
Determines whether the specified System.Object is equal to the current Notification<T>. More... | |
abstract void | Accept (IObserver< T > observer) |
Invokes the observer's method corresponding to the notification. More... | |
abstract TResult | Accept< TResult > (IObserver< T, TResult > observer) |
Invokes the observer's method corresponding to the notification and returns the produced result. More... | |
abstract void | Accept (Action< T > onNext, Action< Exception > onError, Action onCompleted) |
Invokes the delegate corresponding to the notification. More... | |
abstract TResult | Accept< TResult > (Func< T, TResult > onNext, Func< Exception, TResult > onError, Func< TResult > onCompleted) |
Invokes the delegate corresponding to the notification and returns the produced result. More... | |
IObservable< T > | ToObservable () |
Returns an observable sequence with a single notification, using the immediate scheduler. More... | |
IObservable< T > | ToObservable (IScheduler scheduler) |
Returns an observable sequence with a single notification. More... | |
Static Public Member Functions | |
static bool | operator== (Notification< T > left, Notification< T > right) |
Determines whether the two specified Notification<T> objects have the same observer message payload. More... | |
static bool | operator!= (Notification< T > left, Notification< T > right) |
Determines whether the two specified Notification<T> objects have a different observer message payload. More... | |
static Notification< T > | CreateOnNext< T > (T value) |
Creates an object that represents an OnNext notification to an observer. More... | |
static Notification< T > | CreateOnError< T > (Exception error) |
Creates an object that represents an OnError notification to an observer. More... | |
static Notification< T > | CreateOnCompleted< T > () |
Creates an object that represents an OnCompleted notification to an observer. More... | |
Properties | |
abstract T | Value [get] |
Returns the value of an OnNext notification or throws an exception. | |
abstract bool | HasValue [get] |
Returns a value that indicates whether the notification has a value. | |
abstract Exception | Exception [get] |
Returns the exception of an OnError notification or returns null. | |
abstract NotificationKind | Kind [get] |
Gets the kind of notification that is represented. | |
Represents a notification to an observer.
Provides a set of static methods for constructing notifications.
T | The type of the elements received by the observer. |
|
pure virtual |
Invokes the delegate corresponding to the notification.
onNext | Delegate to invoke for an OnNext notification. |
onError | Delegate to invoke for an OnError notification. |
onCompleted | Delegate to invoke for an OnCompleted notification. |
|
pure virtual |
Invokes the observer's method corresponding to the notification.
observer | Observer to invoke the notification on. |
|
pure virtual |
Invokes the delegate corresponding to the notification and returns the produced result.
TResult | The type of the result returned from the notification handler delegates. |
onNext | Delegate to invoke for an OnNext notification. |
onError | Delegate to invoke for an OnError notification. |
onCompleted | Delegate to invoke for an OnCompleted notification. |
|
pure virtual |
Invokes the observer's method corresponding to the notification and returns the produced result.
TResult | The type of the result returned from the observer's notification handlers. |
observer | Observer to invoke the notification on. |
|
static |
Creates an object that represents an OnCompleted notification to an observer.
T | The type of the elements received by the observer. Upon dematerialization of the notifications into an observable sequence, this type is used as the element type for the sequence. |
|
static |
Creates an object that represents an OnError notification to an observer.
T | The type of the elements received by the observer. Upon dematerialization of the notifications into an observable sequence, this type is used as the element type for the sequence. |
error | The exception contained in the notification. |
ArgumentNullException | error is null. |
|
static |
Creates an object that represents an OnNext notification to an observer.
T | The type of the elements received by the observer. Upon dematerialization of the notifications into an observable sequence, this type is used as the element type for the sequence. |
value | The value contained in the notification. |
|
pure virtual |
Determines whether the current Notification<T> object has the same observer message payload as a specified Notification<T> value.
other | An object to compare to the current Notification<T> object. |
Equality of Notification<T> objects is based on the equality of the observer message payload they represent, including the notification Kind and the Value or Exception (if any). This means two Notification<T> objects can be equal even though they don't represent the same observer method call, but have the same Kind and have equal parameters passed to the observer method. In case one wants to determine whether two Notification<T> objects represent the same observer method call, use Object.ReferenceEquals identity equality instead.
override bool UniRx.Notification< T >.Equals | ( | object | obj | ) |
Determines whether the specified System.Object is equal to the current Notification<T>.
obj | The System.Object to compare with the current Notification<T>. |
Equality of Notification<T> objects is based on the equality of the observer message payload they represent, including the notification Kind and the Value or Exception (if any). This means two Notification<T> objects can be equal even though they don't represent the same observer method call, but have the same Kind and have equal parameters passed to the observer method. In case one wants to determine whether two Notification<T> objects represent the same observer method call, use Object.ReferenceEquals identity equality instead.
|
static |
Determines whether the two specified Notification<T> objects have a different observer message payload.
left | The first Notification<T> to compare, or null. |
right | The second Notification<T> to compare, or null. |
Equality of Notification<T> objects is based on the equality of the observer message payload they represent, including the notification Kind and the Value or Exception (if any). This means two Notification<T> objects can be equal even though they don't represent the same observer method call, but have the same Kind and have equal parameters passed to the observer method. In case one wants to determine whether two Notification<T> objects represent a different observer method call, use Object.ReferenceEquals identity equality instead.
|
static |
Determines whether the two specified Notification<T> objects have the same observer message payload.
left | The first Notification<T> to compare, or null. |
right | The second Notification<T> to compare, or null. |
Equality of Notification<T> objects is based on the equality of the observer message payload they represent, including the notification Kind and the Value or Exception (if any). This means two Notification<T> objects can be equal even though they don't represent the same observer method call, but have the same Kind and have equal parameters passed to the observer method. In case one wants to determine whether two Notification<T> objects represent the same observer method call, use Object.ReferenceEquals identity equality instead.
IObservable< T > UniRx.Notification< T >.ToObservable | ( | ) |
Returns an observable sequence with a single notification, using the immediate scheduler.
IObservable< T > UniRx.Notification< T >.ToObservable | ( | IScheduler | scheduler | ) |
Returns an observable sequence with a single notification.
scheduler | Scheduler to send out the notification calls on. |