Package com.perfectcorp.annotation
Annotation Type RequiresApi
-
@Documented @Retention(SOURCE) @Target({TYPE,METHOD,CONSTRUCTOR,FIELD}) public @interface RequiresApiDenotes that the annotated element should only be called on the given API level or higher.This is similar in purpose to the older
@TargetApiannotation, but more clearly expresses that this is a requirement on the caller, rather than being used to "suppress" warnings within the method that exceed theminSdkVersion.