Method LoadLocalTextureAsync
LoadLocalTextureAsync(string, LoadTextureCallback, ProgressCallback, int)
Load a texture asynchronously from local storage
Declaration
RequestHandle LoadLocalTextureAsync(string path, LoadTextureCallback callback, ProgressCallback progress = null, int timeout = 30)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | Path to the texture. |
| LoadTextureCallback | callback | A callback which returns whether the operation was successful, as well as the response payload if it was. If the operation failed, the byte array will contain the error string |
| ProgressCallback | progress | Called every frame while the request is in progress with two 0-1 values indicating upload and download progress, respectively |
| int | timeout | The timeout duration (in seconds) for this request |
Returns
| Type | Description |
|---|---|
| RequestHandle | A handle to the request which can be used to cancel it |