Interface ResourceCallback

  • All Known Implementing Classes:
    SingleRequest

    public interface ResourceCallback
    A callback that listens for when a resource load completes successfully or fails due to an exception.
    • Method Detail

      • onResourceReady

        void onResourceReady​(Resource<?> resource,
                             DataSource dataSource,
                             boolean isLoadedFromAlternateCacheKey)
        Called when a resource is successfully loaded.
        Parameters:
        resource - The loaded resource.
      • onLoadFailed

        void onLoadFailed​(GlideException e)
        Called when a resource fails to load successfully.
        Parameters:
        e - a non-null GlideException.
      • getLock

        java.lang.Object getLock()
        Returns the lock to use when notifying individual requests.