com.airbnb.epoxy.OnVisibilityStateChanged Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of epoxy-annotations Show documentation
Show all versions of epoxy-annotations Show documentation
Epoxy is a system for composing complex screens with a ReyclerView in Android.
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 the visibility state is changed.
*
* Annotated methods should follow this signature :
* `@OnVisibilityStateChange
* public void method(@VisibilityState int state)`
*
* Possible States are declared in {@link com.airbnb.epoxy.OnModelVisibilityStateChangedListener}.
*
* The equivalent methods on the model is
* {@link com.airbnb.epoxy.EpoxyModel#onVisibilityStateChanged}
*
* @see OnModelVisibilityStateChangedListener
*/
@SuppressWarnings("JavadocReference")
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.CLASS)
public @interface OnVisibilityStateChanged {
}