public class

BaseControllerListener2

extends Object
implements ControllerListener2<INFO>
java.lang.Object
   ↳ com.facebook.fresco.ui.common.BaseControllerListener2<INFO>
Known Direct Subclasses

Summary

Public Constructors
BaseControllerListener2()
Public Methods
static <I> ControllerListener2<I> getNoOpListener()
void onFailure(String id, Throwable throwable, ControllerListener2.Extras extras)
Called after the fetch of the final image failed.
void onFinalImageSet(String id, INFO imageInfo, ControllerListener2.Extras extraData)
Called after the final image has been set.
void onIntermediateImageFailed(String id)
Called after the fetch of the intermediate image failed.
void onIntermediateImageSet(String id, INFO imageInfo)
Called after any intermediate image has been set.
void onRelease(String id, ControllerListener2.Extras extras)
Called after the controller released the fetched image.
void onSubmit(String id, Object callerContext, ControllerListener2.Extras extras)
Called before the image request is submitted.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.fresco.ui.common.ControllerListener2

Public Constructors

public BaseControllerListener2 ()

Public Methods

public static ControllerListener2<I> getNoOpListener ()

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

Called after the fetch of the final image failed.

Parameters
id controller id
throwable failure cause
extras extra data

public 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 void onIntermediateImageFailed (String id)

Called after the fetch of the intermediate image failed.

Parameters
id controller id

public void onIntermediateImageSet (String id, INFO imageInfo)

Called after any intermediate image has been set.

Parameters
id controller id

public void onRelease (String id, ControllerListener2.Extras extras)

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
extras extra data

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

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
extras extra data