OnExitedRange

Annotated function in the component will allow it be called when exiting a working range. To enable the working range, you also have to register it in@OnRegisterRanges method.

For example

@LayoutSpec
  public class ComponentSpec {

   @OnExitedRange(name = "prefetch")
    static void yourExitWorkingRangeMethod(ComponentContext c,@Prop YourObject obj) {
    }

   @OnRegisterRanges
    static void yourRegisterMethod(
        ComponentContext c,@Prop WorkingRange yourWorkingRange) {
      Component.registerPrefetchWorkingRange(c, yourWorkingRange);
    }
  }

Functions

Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
abstract fun name(): String
Link copied to clipboard
abstract fun toString(): String