public interface

ControllerListener2

com.facebook.fresco.ui.common.ControllerListener2<INFO>
Known Indirect Subclasses

Summary

Nested Classes
class ControllerListener2.Extras  
Public Methods
abstract void onFailure(String id, Throwable throwable, ControllerListener2.Extras extraData)
Called after the fetch of the final image failed.
abstract void onFinalImageSet(String id, INFO imageInfo, ControllerListener2.Extras extraData)
Called after the final image has been set.
abstract void onIntermediateImageFailed(String id)
Called after the fetch of the intermediate image failed.
abstract void onIntermediateImageSet(String id, INFO imageInfo)
Called after any intermediate image has been set.
abstract void onRelease(String id, ControllerListener2.Extras extraData)
Called after the controller released the fetched image.
abstract void onSubmit(String id, Object callerContext, ControllerListener2.Extras extraData)
Called before the image request is submitted.

Public Methods

public abstract void onFailure (String id, Throwable throwable, ControllerListener2.Extras extraData)

Called after the fetch of the final image failed.

Parameters
id controller id
throwable failure cause
extraData extra data

public abstract void onFinalImageSet (String id, INFO imageInfo, ControllerListener2.Extras extraData)

Called after the final image has been set.

Parameters
id controller id
imageInfo image info
extraData extra data

public abstract void onIntermediateImageFailed (String id)

Called after the fetch of the intermediate image failed.

Parameters
id controller id

public abstract void onIntermediateImageSet (String id, INFO imageInfo)

Called after any intermediate image has been set.

Parameters
id controller id

public abstract void onRelease (String id, ControllerListener2.Extras extraData)

Called after the controller released the fetched image.

IMPORTANT: It is not safe to reuse the controller from within this callback!

Parameters
id controller id
extraData extra data

public abstract void onSubmit (String id, Object callerContext, ControllerListener2.Extras extraData)

Called before the image request is submitted.

IMPORTANT: It is not safe to reuse the controller from within this callback!

Parameters
id controller id
callerContext caller context
extraData extra data