Condividi tramite


PackageManager.GetTargetSdkVersion(String) Method

Definition

[Android.Runtime.Register("getTargetSdkVersion", "(Ljava/lang/String;)I", "GetGetTargetSdkVersion_Ljava_lang_String_Handler", ApiSince=31)]
public virtual int GetTargetSdkVersion (string packageName);
[<Android.Runtime.Register("getTargetSdkVersion", "(Ljava/lang/String;)I", "GetGetTargetSdkVersion_Ljava_lang_String_Handler", ApiSince=31)>]
abstract member GetTargetSdkVersion : string -> int
override this.GetTargetSdkVersion : string -> int

Parameters

packageName
String

Returns

The target SDK version for the given package name.

Attributes

Remarks

Java documentation for android.content.pm.PackageManager.getTargetSdkVersion(java.lang.String).

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