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

com.airbnb.epoxy.OnVisibilityStateChanged 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 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 { }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy