| java.lang.Object | |
| ↳ | cyanogenmod.os.Build.CM_VERSION_CODES |
Enumeration of the currently known SDK version codes. These are the
values that can be found in SDK_INT. Version numbers
increment monotonically with each official platform release.
To programmatically validate that a given API is available for use on the device,
you can quickly check if the SDK_INT from the OS is provided and is greater or equal
to the API level that your application is targeting.
Example for validating that Profiles API is available
private void removeActiveProfile() {
Make sure we're running on BoysenBerry or higher to use Profiles API
if (Build.CM_VERSION.SDK_INT >= Build.CM_VERSION_CODES.BOYSENBERRY) {
ProfileManager profileManager = ProfileManager.getInstance(this);
Profile activeProfile = profileManager.getActiveProfile();
if (activeProfile != null) {
profileManager.removeProfile(activeProfile);
}
}
}
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | APRICOT | June 2015: The first version of the platform sdk for CyanogenMod | |||||||||
| int | BOYSENBERRY |
September 2015: The second version of the platform sdk for CyanogenMod
Applications targeting this or a later release will get these new features:
|
|||||||||
| int | CANTALOUPE |
November - December 2015: The third iteration of the platform sdk for CyanogenMod
Transition api level that is mostly 1:1 to BOYSENBERRY
|
|||||||||
| int | DRAGON_FRUIT |
January 2016: The 4th iteration of the platform sdk for CyanogenMod
Applications targeting this or a later version will get access to these new features:
|
|||||||||
| int | ELDERBERRY |
April 2016: The 5th iteration of the platform sdk for CyanogenMod
Applications targeting this or a later version will get access to these new features!
|
|||||||||
| int | FIG |
August 2016: The 6th iteration of the platform sdk for CyanogenMod
Applications targeting this or a later version will get access to these new features!
|
|||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
June 2015: The first version of the platform sdk for CyanogenMod
September 2015: The second version of the platform sdk for CyanogenMod
Applications targeting this or a later release will get these new features:
ProfileManager
CustomTile.RemoteExpandedStyle
CMHardwareManager (Not for use by 3rd parties)
CMTelephonyManager
PartnerInterface
CMSettings
CyanogenModAlarmClock
November - December 2015: The third iteration of the platform sdk for CyanogenMod
Transition api level that is mostly 1:1 to BOYSENBERRY
January 2016: The 4th iteration of the platform sdk for CyanogenMod
Applications targeting this or a later version will get access to these new features:
PerformanceManagerCMSettings.System interfaceApril 2016: The 5th iteration of the platform sdk for CyanogenMod
Applications targeting this or a later version will get access to these new features!
CMWeatherManagerWeatherProviderServiceThemeManager and
ThemeChangeRequestThemesContract and providerConcierge to help with parcel
headers and protocol revisionsAugust 2016: The 6th iteration of the platform sdk for CyanogenMod
Applications targeting this or a later version will get access to these new features!
CMHardwareManager, as well as do picture adjustmentLiveDisplayConfig and a dedicated
LiveDisplayManagerCMSettings