Show / Hide Table of Contents

    Interface IAsyncLoadable

    This interface is meant to help make asynchronous loading more streamlined and easy to implement. The progress and completion actions help when tying a load operation into a UI. IAsyncLoader to see how it can be used to load a collection asynchronously.

    Namespace: IdleKit.Framework
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IAsyncLoadable

    Methods

    CancelLoad()

    Cancels an in progress load operation.

    Declaration
    void CancelLoad()

    Load(Action<IAsyncLoadable, Single>, Action<IAsyncLoadable>)

    Loads over multiple frames and invokes onProgress as it loads. Once fully loaded, onComplete is invoked.

    Declaration
    void Load(Action<IAsyncLoadable, float> onProgress, Action<IAsyncLoadable> onComplete)
    Parameters
    Type Name Description
    Action<IAsyncLoadable, Single> onProgress

    Invoked when progress is made. Contains a reference to the IAsyncLoadable and the percentage loaded (between 0 - 1).

    Action<IAsyncLoadable> onComplete

    Invoked when fully loaded. Contains a reference to the IAsyncLoadable.

    Back to top Copyright © 2020 East Side Games Inc.