Annotation Type TargetApi


@Target({TYPE,METHOD,CONSTRUCTOR}) @Retention(CLASS) public @interface TargetApi
Indicates that Lint should treat this type as targeting a given API level, no matter what the project target is.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    This sets the target api level for the type..
  • Element Details

    • value

      int value
      This sets the target api level for the type..