語言

ApplicationInfo.TargetSdkVersion 屬性

定義

這個應用程式目標的最低 SDK 版本。

[Android.Runtime.Register("targetSdkVersion")]
public Android.OS.BuildVersionCodes TargetSdkVersion { get; set; }
[<Android.Runtime.Register("targetSdkVersion")>]
member this.TargetSdkVersion : Android.OS.BuildVersionCodes with get, set

屬性值

屬性

備註

這個應用程式目標的最低 SDK 版本。 它可能在較舊版本上運行,但知道如何處理這個版本新增的任何行為。 如果這是開發版,且應用程式針對這點,那就不會。android.os.Build.VERSION_CODES#CUR_DEVELOPMENT 你應該比較這個數字 >= 你行為被引入的 SDK 版本號。

Java 文件 android.content.pm.ApplicationInfo.targetSdkVersion。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於