AndroidVersion

@Incubating open class AndroidVersion
kotlin.Any
   ↳ com.android.build.api.variant.AndroidVersion

Summary

Public constructors

<init>(apiLevel: Int, codename: String? = null)

Properties

Int

SDK version codes mirroring ones found in Build#VERSION_CODES on Android.

String?

Preview versions of the platform are identified by a code name.

Public constructors

<init>

AndroidVersion(
    apiLevel: Int,
    codename: String? = null)

Properties

apiLevel

val apiLevel: Int

SDK version codes mirroring ones found in Build#VERSION_CODES on Android.

codename

val codename: String?

Preview versions of the platform are identified by a code name. Their API level is usually set to the value of the previous platform.