LLOptions Class
Set options for the LeanLoader
Constructor
LLOptions
()
Item Index
Methods
LLOptions().setCacheLife
-
cacheLife:int
Set the cache life of the asset (in seconds)
Parameters:
-
cacheLife:int
Intint 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>
Set the callback for error method that is called if it encounters any issues while loading
Parameters:
-
onError:System.Action<string>
System.ActionSystem.Action
The method that is called when if it encounters an error
LLOptions().setOnLoad
-
onLoad:System.Action<Texture2D>
Set the callback for the asset once it is loaded (image loading)
Parameters:
-
onLoad:System.Action<Texture2D>
System.ActionSystem.Action
The method that is called once the image is loaded
LLOptions().setOnLoad
-
onLoad:System.Action<string>
Set the callback for the asset once it is loaded (data loading)
Parameters:
-
onLoad:System.Action<string>
System.ActionSystem.Action
The method that is called once the data is loaded
LLOptions().setOnLoad
-
onLoad:System.Action<LeanJSON>
Set the callback for the asset once it is loaded (data loading JSON specific)
Parameters:
-
onLoad:System.Action<LeanJSON>
System.ActionSystem.Action
The method that is called once the data is loaded
LLOptions().setOnLoad
-
onLoad:System.Action<AudioClip>
Set the callback for the asset once it is loaded (audio loading)
Parameters:
-
onLoad:System.Action<AudioClip>
System.ActionSystem.Action
The method that is called once the audio is loaded
LLOptions().setPostParams
-
dictionary:Dictionary<string,
Set Post parameters in the server call
Parameters:
-
dictionary:Dictionary<string,
Dictionarystring> Dictionary
Add a dictionary of string values that will be posted to the server call
LLOptions().setPostParams
-
hashtable:Hashtable
Set Post parameters in the server call
Parameters:
-
hashtable:Hashtable
HashtableHashtable Add a hashtable of values that will be posted to the server call
LLOptions().setUseCache
-
useCache:boolean
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
Booleanboolean determining whether or not to cache this item (and retrieve from cache in subsequent calls)
LLOptions().setUseCacheAsBackup
-
useCacheAsBackup:boolean
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
Booleanboolean determining whether or not to retrieve a cached version as a backup to getting the most up-to-date version