Language

TargetApiAttribute Class

Definition

Represents Android's target-API hint for lint as a managed attribute.

[Android.Runtime.Annotation("android.annotation.TargetApi")]
public class TargetApiAttribute : Attribute
[<Android.Runtime.Annotation("android.annotation.TargetApi")>]
type TargetApiAttribute = class
    inherit Attribute
Inheritance
TargetApiAttribute
Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

Name Description
TargetApiAttribute()

Creates a managed target-API annotation attribute.

Properties

Name Description
Value

Gets or sets the API level that lint should assume for the annotated element.

Applies to