Added in API level 16

SuppressLint

@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE, AnnotationTarget.FIELD, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.LOCAL_VARIABLE]) class SuppressLint
android.annotation.SuppressLint

Indicates that Lint should ignore the specified warnings for the annotated element.

Summary

Public constructors
SuppressLint(vararg value: String)

Indicates that Lint should ignore the specified warnings for the annotated element.

Properties
Array<String>

The set of warnings (identified by the lint issue id) that should be ignored by lint.

Public constructors

SuppressLint

Added in API level 16
SuppressLint(vararg value: String)

Indicates that Lint should ignore the specified warnings for the annotated element.

Properties

value

Added in API level 16
val value: Array<String>

The set of warnings (identified by the lint issue id) that should be ignored by lint. It is not an error to specify an unrecognized name.