RequiresApi vs TargetApi android annotations

@RequiresApi – Denotes that the annotated element should only be called on the given API level or higher.

@TargetApi – Indicates that Lint should treat this type as targeting a given API level, no matter what the project target is.

Leave a Comment