Show / Hide Table of Contents

    Interface ISingleDataProvider<TOutputData>

    This interface should be used to provide access to a single IData object.

    Inherited Members
    IDataProvider.DataType
    IDataProvider.IsLoaded
    IInjectable.Inject(IResolver)
    Namespace: IdleKit.Core
    Assembly: cs.temp.dll.dll
    Syntax
    public interface ISingleDataProvider<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.

    Back to top Copyright © 2020 East Side Games Inc.