Version

interface Version

Version interface provides details about the version of the Android operating system. It includes information such as the base OS, SDK version, release details, incremental build version, security patch level, and other relevant version-related data.

This interface exposes various properties related to the Android OS version that can be used to retrieve information about the current version, preview SDK, and the media performance class.

Author

Swapnil Musale

Inheritors

AndroidVersionImpl

Properties

Link copied to clipboard
abstract val baseOs: String

baseOs the base operating system version of the Android device

Link copied to clipboard
abstract val codeName: String

codeName the code name of the current Android version (e.g., "Pie", "Q", "R")

Link copied to clipboard
abstract val incremental: String

incremental the incremental version string, often used for identifying minor updates

Link copied to clipboard

mediaPerformanceClass the media performance class of the Android device (used to indicate the media performance tier)

Link copied to clipboard
abstract val previewSdkInt: Int

previewSdkInt the SDK version of the preview release (if any)

Link copied to clipboard
abstract val release: String

release the string value representing the release version of the Android operating system

Link copied to clipboard

releaseOrCodeName returns either the release version or the code name of the Android version

Link copied to clipboard

releaseOrPreviewDisplay returns either the release version or preview display name (if in preview mode)

Link copied to clipboard
abstract val sdkInt: Int

sdkInt the integer value of the current Android SDK version

Link copied to clipboard
abstract val securityPatch: String

securityPatch the security patch level of the current Android version