All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.airbnb.epoxy.OnVisibilityChanged Maven / Gradle / Ivy

package com.airbnb.epoxy;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * This can be used to annotate methods inside classes with a {@link ModelView} annotation. Methods
 * with this annotation will be called when visibility part of the view change.
 * 

* Annotated methods should follow this signature : * `@OnVisibilityChanged * public void method( * float percentVisibleHeight, float percentVisibleWidth: Float, * int visibleHeight, int visibleWidth * )` *

* The equivalent methods on the model is {@link com.airbnb.epoxy.EpoxyModel#onVisibilityChanged} *

* @see OnModelVisibilityChangedListener */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.CLASS) public @interface OnVisibilityChanged { }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy