java.lang.Object | |
↳ | lineageos.os.Build.LINEAGE_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.LINEAGE_VERSION.SDK_INT >= Build.LINEAGE_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!
|
|||||||||
int | GUAVA | January 2017: Unreleased preliminary version starting from CM14 | |||||||||
int | HACKBERRY |
February 2018: Unreleased preliminary version starting from LineageOS 15.1
Unused APIs have been removed. |
|||||||||
int | ILAMA |
March 2018: The 1st iteration of the platform sdk for LineageOS
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
LineageHardwareManager
(Not for use by 3rd parties)
LineageSettings
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:
PerformanceManager
LineageSettings.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!
LineageWeatherManager
WeatherProviderService
Concierge
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!
LineageHardwareManager
, as well as do picture adjustmentLiveDisplayConfig
and a dedicated
LiveDisplayManager
LineageSettings
January 2017: Unreleased preliminary version starting from CM14
February 2018: Unreleased preliminary version starting from LineageOS 15.1
Unused APIs have been removed.
March 2018: The 1st iteration of the platform sdk for LineageOS
Applications targeting this or a later version will get access to these new features!