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 SourceAddListener(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 |
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 |
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. |
RemoveListener(IAsyncUpdatable)
Removes an existing listener.
Declaration
void RemoveListener(IAsyncUpdatable updatable)
Parameters
Type | Name | Description |
---|---|---|
IAsyncUpdatable | updatable | An update listener. Can be null. |