Language

TargetApi.Value Method

Definition

Returns the target API level for the annotated element.

[Android.Runtime.Register("value", "()I", "GetValueHandler")]
public abstract int Value();
[<Android.Runtime.Register("value", "()I", "GetValueHandler")>]
abstract member Value : unit -> int

Returns

The Android API level that lint should assume for the annotated element.

Attributes

Remarks

Returns the target API level for the annotated element.

Java documentation for android.annotation.TargetApi.value().

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.

Applies to