- Developed by Dented Pixel
API Docs for: LeanLoader 0.2
Show:

LLOptions Class

Defined in: LeanLoader.cs:360

Set options for the LeanLoader

Constructor

LLOptions

()

Defined in LeanLoader.cs:360

Methods

LLOptions().setCacheLife

(
  • cacheLife:int
)

Defined in LeanLoader.cs:506

Set the cache life of the asset (in seconds)

Parameters:

  • cacheLife:int Int

    int value in seconds specifying the life-time of the cached asset. Once this value is exceded a new version will be retrieved.

LLOptions().setOnError

(
  • onError:System.Action<string>
)

Defined in LeanLoader.cs:430

Set the callback for error method that is called if it encounters any issues while loading

Parameters:

  • onError:System.Action<string> System.Action

    System.Action The method that is called when if it encounters an error

LLOptions().setOnLoad

(
  • onLoad:System.Action<Texture2D>
)

Defined in LeanLoader.cs:370

Set the callback for the asset once it is loaded (image loading)

Parameters:

  • onLoad:System.Action<Texture2D> System.Action

    System.Action The method that is called once the image is loaded

LLOptions().setOnLoad

(
  • onLoad:System.Action<string>
)

Defined in LeanLoader.cs:385

Set the callback for the asset once it is loaded (data loading)

Parameters:

  • onLoad:System.Action<string> System.Action

    System.Action The method that is called once the data is loaded

LLOptions().setOnLoad

(
  • onLoad:System.Action<LeanJSON>
)

Defined in LeanLoader.cs:400

Set the callback for the asset once it is loaded (data loading JSON specific)

Parameters:

  • onLoad:System.Action<LeanJSON> System.Action

    System.Action The method that is called once the data is loaded

LLOptions().setOnLoad

(
  • onLoad:System.Action<AudioClip>
)

Defined in LeanLoader.cs:415

Set the callback for the asset once it is loaded (audio loading)

Parameters:

  • onLoad:System.Action<AudioClip> System.Action

    System.Action The method that is called once the audio is loaded

LLOptions().setPostParams

(
  • dictionary:Dictionary<string,
)

Defined in LeanLoader.cs:441

Set Post parameters in the server call

Parameters:

  • dictionary:Dictionary<string, Dictionary

    string> Dictionary Add a dictionary of string values that will be posted to the server call

LLOptions().setPostParams

(
  • hashtable:Hashtable
)

Defined in LeanLoader.cs:452

Set Post parameters in the server call

Parameters:

  • hashtable:Hashtable Hashtable

    Hashtable Add a hashtable of values that will be posted to the server call

LLOptions().setUseCache

(
  • useCache:boolean
)

Defined in LeanLoader.cs:484

Set the use of caching. On subsequent calls if the cache-life is still valid, it will retrieve it from the cache first

Parameters:

  • useCache:boolean Boolean

    boolean determining whether or not to cache this item (and retrieve from cache in subsequent calls)

LLOptions().setUseCacheAsBackup

(
  • useCacheAsBackup:boolean
)

Defined in LeanLoader.cs:495

This mode of caching only pulls up the cache as a backup (if internet is not available, or it has an issue reaching the asset)

Parameters:

  • useCacheAsBackup:boolean Boolean

    boolean determining whether or not to retrieve a cached version as a backup to getting the most up-to-date version