OnMeasureBaseline

A method that is annotated with this annotation will be used to compute the baseline of your component. The default baseline of your component if this method is not implemented is the computed height of your component. The baseline is the vertical location of your component to be aligned when using .alignItems(BASELINE). @LayoutSpec public class MyComponentSpec { @OnMeasureBaseline int onMeasureBaseline(ComponentContext c, int width, int height) { return height / 2; } }

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 toString(): String