Show / Hide Table of Contents

Interface IAsyncUpdateSource

A provider of update notifications.

Inherited Members
System.IObservable<System.Single>.Subscribe(System.IObserver<System.Single>)
Namespace: UnityFx.Async
Assembly: UnityFx.Async-netstandard2.0.dll
Syntax
public interface IAsyncUpdateSource : IObservable<float>

Methods

| Improve this Doc View Source

AddListener(Action<Single>)

Adds a new update listener.

Declaration
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
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

RemoveListener(Action<Single>)

Removes an existing listener.

Declaration
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
void RemoveListener(IAsyncUpdatable updatable)
Parameters
Type Name Description
IAsyncUpdatable updatable

An update listener. Can be null.

Extension Methods

IObservableExtensions.ToAsync<T>(IObservable<T>)

See Also

IAsyncUpdatable
  • Improve this Doc
  • View Source
Back to top Copyright (c) 2017-2018 Alexander Bogarsukov