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