AndroidVersionImpl
AndroidVersionImpl
class provides the implementation of the Version
interface. This class retrieves version-related information of the Android operating system from the Build.VERSION
class, including base OS, SDK version, release information, incremental version, security patch level, and more. It handles different versions of Android using appropriate API levels.
This class makes use of the @RequiresApi
annotations to indicate which Android API levels are required for accessing certain properties of the Build.VERSION
.
Author
Swapnil Musale
See also
Properties
baseOs
returns the base operating system version of the Android device
incremental
returns the incremental version string for minor updates of the current Android version
mediaPerformanceClass
returns the media performance class of the Android device
previewSdkInt
returns the SDK version for preview releases of Android
releaseOrCodeName
returns either the release version or the code name of the Android version
releaseOrPreviewDisplay
returns either the release version or the preview display name if the device is in preview mode
securityPatch
returns the security patch level of the current Android version