Class TimedDataSourceManager
A singleton class that keeps track of ITimed
Namespace: Unity.LiveCapture
Assembly: Unity.LiveCapture.dll
Syntax
public sealed class TimedDataSourceManager
Properties
Entries
Gets the list of registered sources.
Declaration
public IReadOnlyList<ITimedDataSource> Entries { get; }
Property Value
Type | Description |
---|---|
IRead |
Instance
The Timed
Declaration
public static TimedDataSourceManager Instance { get; }
Property Value
Type | Description |
---|---|
Timed |
this[string]
Gets the ITimed
Declaration
public ITimedDataSource this[string id] { get; }
Parameters
Type | Name | Description |
---|---|---|
string | id | The ID of the source to get. |
Property Value
Type | Description |
---|---|
ITimed |
The source, or null if none with the given ID are registered. |
Methods
Clear()
Unregister all sources.
Declaration
public void Clear()
EnsureIdIsValid(ref string)
Creates a new ID if the given ID is uninitialized or is already used.
Declaration
public bool EnsureIdIsValid(ref string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The ID to initialize. |
Returns
GetEnumerator()
Gets an enumerator that iterates over all registered sources.
Declaration
public IEnumerator<ITimedDataSource> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<ITimed |
An enumerator for the collection. |
Register(ITimedDataSource)
Adds a ITimed
Declaration
public bool Register(ITimedDataSource source)
Parameters
Type | Name | Description |
---|---|---|
ITimed |
source | The source to register. |
Returns
Type | Description |
---|---|
bool |
|
Unregister(ITimedDataSource)
Removes a ITimed
Declaration
public bool Unregister(ITimedDataSource source)
Parameters
Type | Name | Description |
---|---|---|
ITimed |
source | The source to unregister. |
Returns
Type | Description |
---|---|
bool |
|
Events
Added
An event triggered when a new source is registered.
Declaration
public event Action<ITimedDataSource> Added
Event Type
Type | Description |
---|---|
Action<ITimed |
Removed
An event triggered when a source is unregistered.
Declaration
public event Action<ITimedDataSource> Removed
Event Type
Type | Description |
---|---|
Action<ITimed |