public class OnLoad<T>
extends java.lang.Object
| Constructor and Description |
|---|
OnLoad() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOnLoadListener(OnLoadListener<T> listener)
Register listeners to receive a one time notification when this asset is loaded.
|
void |
fireLoad(T t)
Notifies and remove all listener
|
void |
fireProgressLoad(T t)
Notifies listener, but they are not removed
|
void |
removeOnLoadListener(OnLoadListener<Texture> listener) |
public final void fireLoad(T t)
t - data loaded, null will be considered as not loadedpublic final void fireProgressLoad(T t)
public final void addOnLoadListener(OnLoadListener<T> listener)
#get() when the loading state is
complete.#get()public void removeOnLoadListener(OnLoadListener<Texture> listener)
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com