MediaTracker.checkID

MediaTracker.checkID

Class Overview | Class Members | This Package | All Packages

Syntax 1
public boolean checkID( int id )
Parameters
id
the identifier of the images to check.
Returns
true if all images have finished loading, have been aborted, or have encountered an error; false otherwise.
Description
Checks to see if all images tracked by this media tracker that are tagged with the specified identifier have finished loading.

This method does not start loading the images if they are not already loading.

If there is an error while loading or scaling an image, then that image is considered to have finished loading. Use the isErrorAny or isErrorID methods to check for errors.

See Also
checkID, checkAll, isErrorAny, isErrorID



Syntax 2
public boolean checkID( int id, boolean load )
Parameters
id
the identifier of the images to check.
load
if true, start loading any images that are not yet being loaded.
Returns
true if all images have finished loading, have been aborted, or have encountered an error; false otherwise.
Description
Checks to see if all images tracked by this media tracker that are tagged with the specified identifier have finished loading.

If the value of the load flag is true, then this method starts loading any images that are not yet being loaded.

If there is an error while loading or scaling an image, then that image is considered to have finished loading. Use the isErrorAny or isErrorID methods to check for errors.

See Also
checkID, checkAll, isErrorAny, isErrorID