Package 

Interface ViewTarget

  • All Implemented Interfaces:
    coil.target.Target

    
    public interface ViewTarget<T extends View>
     implements Target
                        

    A Target with an associated View. Prefer this to Target if the given drawables will only be used by view.

    Optionally, ViewTargets can implement LifecycleObserver. They are automatically registered when the request starts and unregistered when the request completes.

    • Method Summary

      Modifier and Type Method Description
      abstract T getView() The View used by this Target.
      • Methods inherited from class coil.target.ViewTarget

        onError, onStart, onSuccess
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getView

         abstract T getView()

        The View used by this Target. This field should be immutable.