Unity - Scripting API: AndroidSdkVersions
enumeration
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Description
The Android API levels to specify in scripts.
Note: The lowest API level listed here strictly corresponds to the lowest supported API level. However, do not use these values to determine the highest supported API level.
The following code example demonstrates how you can set the target API level using this enum.
Properties
| Property | Description |
|---|---|
| AndroidApiLevelAuto | Sets the target API level automatically, according to the latest installed SDK on your computer. |
| AndroidApiLevel23 | Android 6.0, "Marshmallow", API level 23. |
| AndroidApiLevel24 | Android 7.0, "Nougat", API level 24. |
| AndroidApiLevel25 | Android 7.1, "Nougat", API level 25. |
| AndroidApiLevel26 | Android 8.0, "Oreo", API level 26. |
| AndroidApiLevel27 | Android 8.1, "Oreo", API level 27. |
| AndroidApiLevel28 | Android 9.0, "Pie", API level 28. |
| AndroidApiLevel29 | Android 10.0, API level 29. |
| AndroidApiLevel30 | Android 11.0, API level 30. |
| AndroidApiLevel31 | Android 12, API level 31. |
| AndroidApiLevel32 | Android 12L, API level 32. |
| AndroidApiLevel33 | Android 13, API level 33. |
| AndroidApiLevel34 | Android 14, API level 34. |
| AndroidApiLevel35 | Android 15.0, API level 35. |
| AndroidApiLevel36 | Android 16.0, API level 36. |