Package tds.androidx.annotation
See: Description
-
Annotation Summary Annotation Description NonNull Denotes that a parameter, field or method return value can never be null. UiThread Denotes that the annotated method or constructor should only be called on the UI thread. IdRes Denotes that an integer parameter, field or method return value is expected to be an id resource reference (e.g. FloatRange Denotes that the annotated element should be a float or double in the given range Example: @FloatRange(from=0.0,to=1.0) public float getAlpha() { ... }
RequiresApi Denotes that the annotated element should only be called on the given API level or higher. AttrRes Denotes that an integer parameter, field or method return value is expected to be an attribute reference (e.g. VisibleForTesting Denotes that the class, method or field has its visibility relaxed, so that it is more widely visible than otherwise necessary to make code testable. IntDef Denotes that the annotated element of integer type, represents a logical type and that its value should be one of the explicitly named constants. Px Denotes that an integer parameter, field or method return value is expected to represent a pixel dimension. DrawableRes Denotes that an integer parameter, field or method return value is expected to be a drawable resource reference (e.g. IntRange Denotes that the annotated element should be an int or long in the given range Example: @IntRange(from=0,to=255) public int getAlpha() { ... }
ColorInt Denotes that the annotated element represents a packed color int, {@code AARRGGBB}
.Dimension Denotes that an integer parameter, field or method return value is expected to represent a dimension. WorkerThread Denotes that the annotated method should only be called on a worker thread. RestrictTo Denotes that the annotated element should only be accessed from within a specific scope (as defined by Scope). CallSuper Denotes that any overriding methods should invoke this method as well. StringRes Denotes that an integer parameter, field or method return value is expected to be a String resource reference (e.g. ColorRes Denotes that an integer parameter, field or method return value is expected to be a color resource reference (e.g. StringDef Nullable Denotes that a parameter, field or method return value can be null. -
Enum Summary Enum Description Scope