SDL_GetAndroidSDKVersion(3)
π SDL_GetAndroidSDKVersion(3) β SDL3 FUNCTIONS π
okay bestie, pull up a chair, because today we're talking about SDL_GetAndroidSDKVersion from the SDL3 FUNCTIONS squad π«Ά
β¨ NAME β¨
SDL_GetAndroidSDKVersion β the lil function that tells you the Android API level of the current device π₯
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_system.h>
int SDL_GetAndroidSDKVersion(void);
no cap, that's the whole thing. she's small but she knows things π
π¦ DESCRIPTION π¦
so basically, this is your cheat sheet for decoding what API level means what in Android-land π here's the full glow-up timeline, from the freshest to the most vintage:
- API level 35 β Android 15 (
VANILLA_ICE_CREAM) π¦ - API level 34 β Android 14 (
UPSIDE_DOWN_CAKE) π° - API level 33 β Android 13 (
TIRAMISU) β - API level 32 β Android 12L (
S_V2) - API level 31 β Android 12 (
S) - API level 30 β Android 11 (
R) - API level 29 β Android 10 (
Q) - API level 28 β Android 9 (
P) - API level 27 β Android 8.1 (
O_MR1) - API level 26 β Android 8.0 (
O) - API level 25 β Android 7.1 (
N_MR1) - API level 24 β Android 7.0 (
N) - API level 23 β Android 6.0 (
M) - API level 22 β Android 5.1 (
LOLLIPOP_MR1) π - API level 21 β Android 5.0 (
LOLLIPOP,L) π - API level 20 β Android 4.4W (
KITKAT_WATCH) π«β - API level 19 β Android 4.4 (
KITKAT) π« - API level 18 β Android 4.3 (
JELLY_BEAN_MR2) π« - API level 17 β Android 4.2 (
JELLY_BEAN_MR1) π« - API level 16 β Android 4.1 (
JELLY_BEAN) π« - API level 15 β Android 4.0.3 (
ICE_CREAM_SANDWICH_MR1) π¨ - API level 14 β Android 4.0 (
ICE_CREAM_SANDWICH) π¨ - API level 13 β Android 3.2 (
HONEYCOMB_MR2) π― - API level 12 β Android 3.1 (
HONEYCOMB_MR1) π― - API level 11 β Android 3.0 (
HONEYCOMB) π― - API level 10 β Android 2.3.3 (
GINGERBREAD_MR1) π
like, the way the dessert names just keep coming?? iconic behavior fr fr π
π RETURN VALUE π
she returns the Android API level. that's it, that's the tea ββ¨
π THREAD SAFETY π
bestie you can call this from any thread and it's safe π«Ά go wild, no stress, she's built different π
π AVAILABILITY π
this function is available since SDL 3.2.0. so if you're on an older SDL, she's not home yet, sorry babe π
π reminder: the vibes are cute but the facts are sacred β every API level, every codename, every return value stays exactly where it is. don't come for me, come for the docs. π
and that's a wrap, gorgeous π§π this page came to you from Simple Directmedia Layer, living its SDL 3.4.18 era, and it's SDL_GetAndroidSDKVersion(3) signing off β stay slay, stay threaded, and go check that API level bestie π
β¨π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms