BuildCompat
This class contains additional platform version checking methods for targeting pre-release versions of Android.
Types
Experimental feature set for pre-release SDK checks.
Properties
The value of SdkExtensions.getExtensionVersion(AD_SERVICES)
. This is a convenience constant which provides the extension version in a similar style to Build.VERSION.SDK_INT
.
The value of SdkExtensions.getExtensionVersion(R)
. This is a convenience constant which provides the extension version in a similar style to Build.VERSION.SDK_INT
.
The value of SdkExtensions.getExtensionVersion(S)
. This is a convenience constant which provides the extension version in a similar style to Build.VERSION.SDK_INT
.
The value of SdkExtensions.getExtensionVersion(TIRAMISU)
. This is a convenience constant which provides the extension version in a similar style to Build.VERSION.SDK_INT
.
Functions
Checks if the device is running on the Android N release or newer.
Checks if the device is running on the Android N MR1 release or newer.
Checks if the device is running on a release version of Android O or newer.
Checks if the device is running on a release version of Android O MR1 or newer.
Checks if the device is running on a release version of Android P or newer.
Checks if the codename is a matching or higher version than the given build value.
Checks if the device is running on release version of Android Q or newer.
Checks if the device is running on release version of Android R or newer.
Checks if the device is running on a pre-release version of Android S or a release version of Android S or newer.
Checks if the device is running on a pre-release version of Android Sv2 or a release version of Android Sv2 or newer.
Checks if the device is running on a pre-release version of Android Tiramisu or a release version of Android Tiramisu or newer.
Checks if the device is running on a pre-release version of Android UpsideDownCake or a release version of Android UpsideDownCake or newer.
Checks if the device is running on a pre-release version of Android VanillaIceCream or a release version of Android VanillaIceCream or newer.