lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey
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