Interface IMultipleDataProvider<TOutputData>
This interface should be used to provide access to a set of IData objects.
Namespace: IdleKit.Core
Assembly: cs.temp.dll.dll
Syntax
public interface IMultipleDataProvider<out TOutputData> : IDataProvider, IInjectable where TOutputData : class, IData
Type Parameters
Name | Description |
---|---|
TOutputData | The Type of data this provider contains. |
Properties
Data
Retrieve the data synchronously. Only use this if you are sure the data has been loaded.
Declaration
TOutputData[] Data { get; }
Property Value
Type | Description |
---|---|
TOutputData[] |
Methods
GetData(Action<TOutputData[]>)
Loads the data asynchronously if needed and broadcasts a callback containing the data.
Declaration
void GetData(Action<TOutputData[]> onDataRetrieved)
Parameters
Type | Name | Description |
---|---|---|
Action<TOutputData[]> | onDataRetrieved | Broadcast when the data is accessible. |