PackageManager.GetTargetSdkVersion(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the Android SDK level targeted by the named package.
[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
The package name used to look up the target SDK level.
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.