SDL_REQUESTANDROIDPERMISSIONCALLBACK(3type)
π SDL_RequestAndroidPermissionCallback β SDL3 DATATYPES β¨
okay bestie, sit down, we're talking about a datatype today and honestly? she's lowkey iconic. this is a page from the SDL3 datatypes squad, and the star of the show is SDL_RequestAndroidPermissionCallback π«Ά
πΈ NAME πΈ
SDL_RequestAndroidPermissionCallback β the callback that serves up a response from an SDL_RequestAndroidPermission call. it's giving "hey, you asked for permission, here's the tea" π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_system.h>
typedef void (SDLCALL *SDL_RequestAndroidPermissionCallback)(void *userdata, const char *permission, bool granted);
no cap, that's the whole signature. a function pointer type, SDLCALL calling convention, returns void, periodt. π
π FUNCTION PARAMETERS π
userdataβ an app-controlled pointer that gets passed straight through to the callback. it's yours, you own it, SDL is just the messenger π¦permissionβ the Android-specific permission name that was requested. so like, the actual string of the thing you asked for πgrantedβtrueif permission is granted,falseif denied. literally the vibes check result of your whole request π
π AVAILABILITY π
this datatype has been around since SDL 3.2.0. so if you're on anything older, babe, it's not there, no amount of manifesting will summon it π
β SEE ALSO β
SDL_RequestAndroidPermission(3)β the main character that spawns this callback energy. go read her too, fr fr π
lowkey reminder: this is a callback type, so you're the one writing the function body. SDL just calls it and hands you the receipts π§
that's the whole page, bestie, you ate it π from the Simple Directmedia Layer girlies, this is SDL 3.4.18 of the SDL3 datatypes saga β mwah, bye, go write some beautiful callbacks β¨ππ
π¦ 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