public interface ResourceHandle
A resource handle is used to check whether a resource is valid and to obtain the engine to which the resource belongs.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Engine |
getEngine() |
Obtains the engine to which this handle belongs.
|
boolean |
isValid() |
Checks whether this resource handle is valid.
|
static boolean |
isValid(ResourceHandle handle) |
Checks whether a specified resource handle is valid.
|
void |
release() |
Releases handle data.
|
Engine getEngine()
void release()
boolean isValid()
true if this handle is valid; returns false otherwise.static boolean isValid(ResourceHandle handle)
handle - Indicates the resource handle to check.true if the specified resource handle is valid; returns false otherwise.