@Retention(value=CLASS)
@Target(value={ANNOTATION_TYPE,METHOD,CONSTRUCTOR,FIELD,PARAMETER})
public @interface RequiresApi
This is similar in purpose to the older @TargetApi annotation, but more
clearly expresses that this is a requirement on the caller, rather than being
used to "suppress" warnings within the method that exceed the minSdkVersion.
| Modifier and Type | Required Element and Description |
|---|---|
int |
api |