com.airbnb.epoxy.TextProp 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;
import androidx.annotation.StringRes;
/**
* A convenient replacement for {@link ModelProp} when the prop represents text.
*
* This can only be used when the setter parameter is a {@link CharSequence}
*
* This is the same as using {@link ModelProp} with the option {@link
* com.airbnb.epoxy.ModelProp.Option#GenerateStringOverloads}
*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.CLASS)
public @interface TextProp {
@StringRes int defaultRes() default 0;
}