Show / Hide Table of Contents

Class AsyncUpdateSource

Implementation of IAsyncUpdateSource.

Inheritance
Object
AsyncUpdateSource
Implements
IAsyncUpdateSource
System.IObservable<Single>
System.IObserver<Single>
IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: UnityFx.Async
Assembly: UnityFx.Async-netstandard2.0.dll
Syntax
public class AsyncUpdateSource : IAsyncUpdateSource, IObservable<float>, IObserver<float>, IDisposable

Methods

| Improve this Doc View Source

AddListener(Action<Single>)

Adds a new update listener.

Declaration
public void AddListener(Action<float> updateCallback)
Parameters
Type Name Description
System.Action<Single> updateCallback

An update callback.

Exceptions
Type Condition
ArgumentNullException

Thrown is updateCallback is null.

| Improve this Doc View Source

AddListener(IAsyncUpdatable)

Adds a new update listener.

Declaration
public void AddListener(IAsyncUpdatable updatable)
Parameters
Type Name Description
IAsyncUpdatable updatable

An update listener.

Exceptions
Type Condition
ArgumentNullException

Thrown is updatable is null.

| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

OnCompleted()

Declaration
public void OnCompleted()
| Improve this Doc View Source

OnError(Exception)

Declaration
public void OnError(Exception e)
Parameters
Type Name Description
Exception e
| Improve this Doc View Source

OnNext(Single)

Declaration
public void OnNext(float frameTime)
Parameters
Type Name Description
Single frameTime
| Improve this Doc View Source

RemoveListener(Action<Single>)

Removes an existing listener.

Declaration
public void RemoveListener(Action<float> updateCallback)
Parameters
Type Name Description
System.Action<Single> updateCallback

An update listener. Can be null.

| Improve this Doc View Source

RemoveListener(IAsyncUpdatable)

Removes an existing listener.

Declaration
public void RemoveListener(IAsyncUpdatable updatable)
Parameters
Type Name Description
IAsyncUpdatable updatable

An update listener. Can be null.

| Improve this Doc View Source

Subscribe(IObserver<Single>)

Declaration
public IDisposable Subscribe(IObserver<float> observer)
Parameters
Type Name Description
System.IObserver<Single> observer
Returns
Type Description
IDisposable

Implements

IAsyncUpdateSource
System.IObservable<T>
System.IObserver<T>
System.IDisposable

Extension Methods

IObservableExtensions.ToAsync<T>(IObservable<T>)
  • Improve this Doc
  • View Source
Back to top Copyright (c) 2017-2018 Alexander Bogarsukov