@Retention(value=CLASS) public @interface OnEnteredRange
For example
@LayoutSpec
public class ComponentSpec {
@OnEnteredRange(name = "prefetch")
static void yourEnterWorkingRangeMethod(ComponentContext c, @Prop YourObject obj) {
}
@OnRegisterRanges
static void yourRegisterMethod(
ComponentContext c, @Prop WorkingRange yourWorkingRange) {
Component.registerPrefetchWorkingRange(c, yourWorkingRange);
}
}
public abstract String name