| Package | com.sibirjak.angara.resource |
| Interface | public interface ICallback |
| Implementors | Callback |
It is possible to assign a callback function to any resource loader. If a callback has been specified, the callback will be executed before the resource loader COMPLETE event is dispatched. It is possible to mark a callback as asynchronous, which will stop the loader manager queue until the notifyComplete() method of that callback has been triggered.
Per default a callback method will be called synchronously. The loader manager continues working right after the callback handler has been triggered.
| Property | Defined by | ||
|---|---|---|---|
| loader : IResourceLoader
[read-only]
Returns a reference to the loader that defines the callback.
| ICallback | ||
| Method | Defined by | ||
|---|---|---|---|
|
notifyComplete():void
Notifies the loader manager about a completed asynchronous callback.
| ICallback | ||
|
setAsync():void
Sets a callback to be asynchronous.
| ICallback | ||
| loader | property |
loader:IResourceLoader [read-only]Returns a reference to the loader that defines the callback.
Implementation public function get loader():IResourceLoader
| notifyComplete | () | method |
public function notifyComplete():voidNotifies the loader manager about a completed asynchronous callback.
The loader manager will continue loading not until this method has been called.
| setAsync | () | method |
public function setAsync():voidSets a callback to be asynchronous.
The loader manager will wait for the callback completion to continue its work. You need to call callback.notifyComplete() to notify the loader manager to continue.