Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in API level 16

TargetApi

public abstract @interface TargetApi
implements Annotation

android.annotation.TargetApi


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

Summary

Public methods

int value()

This sets the target api level for the type..

Inherited methods

Public methods

value

public int value ()

This sets the target api level for the type..

Returns
int