Load task for a group of resources. More...
Classes | |
| interface | Callback |
| Callback interface to indicate that resource loading is finished. More... | |
Public Member Functions | |
| ObjectRef< Resource > | getLoadedResource (String url) |
| Gets a resource that has been loaded by this task. | |
| boolean | isFinished () |
| Tells whether the task has been finished and the callback called. | |
Load task for a group of resources.
The task is created from a set of URLs and a callback. When Kanzi loads all URLs, it calls the callback. See com.rightware.kanzi.ResourceManager#acquireResourcesAsync and com.rightware.kanzi.ResourceManager#wait(AcquireTask).
Gets a resource that has been loaded by this task.
If the loading is not yet finished, or if the given URL has failed to load, returns a null.
| url | The URL of a resource in this load task. |
| boolean isFinished | ( | ) |
Tells whether the task has been finished and the callback called.