Request permissions at runtime.
<syntaxhighlight lang="c"> SDL_bool SDL_AndroidRequestPermission(const char *permission); </syntaxhighlight>
permission | The permission to request. |
Returns SDL_TRUE if the permission was granted, SDL_FALSE otherwise.
This blocks the calling thread until the permission is granted or denied.
This function is available since SDL 2.0.14.
CategoryAPI