Interface ResourceLoader.ResourceLoadListener

Enclosing class:
ResourceLoader

public static interface ResourceLoader.ResourceLoadListener
Event listener that gets notified when a resource has been loaded.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Notifies this ResourceLoadListener that a resource could not be loaded, e.g. because the file could not be found or because the server did not respond.
    void
    Notifies this ResourceLoadListener that a resource has been loaded.
  • Method Details

    • onLoad

      Notifies this ResourceLoadListener that a resource has been loaded. Some browsers do not support any way of detecting load errors. In these cases, onLoad will be called regardless of the status.
      Parameters:
      event - a resource load event with information about the loaded resource
      See Also:
    • onError

      void onError(ResourceLoader.ResourceLoadEvent event)
      Notifies this ResourceLoadListener that a resource could not be loaded, e.g. because the file could not be found or because the server did not respond. Some browsers do not support any way of detecting load errors. In these cases, onLoad will be called regardless of the status.
      Parameters:
      event - a resource load event with information about the resource that could not be loaded.
      See Also: