SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]

SDL_HINT_ANDROID_ALLOW_PERSISTENT_FOLDER_ACCESS

A variable to control whether we allow persistent folder access on Android when using the SDL select folder dialog.

Header File

Defined in <SDL3/SDL_hints.h>

Syntax

#define SDL_HINT_ANDROID_ALLOW_PERSISTENT_FOLDER_ACCESS "SDL_ANDROID_ALLOW_PERSISTENT_FOLDER_ACCESS"

Remarks

If set to 1, the selected folder will be accessible persistently across app launches. That allows the user to only have to select the directory once, and then the app can access it again in the future without needing to ask the user to select it again.

The variable can be set to the following values:

This hint should be set before the SDL folder selection dialog is shown, and can be changed between dialog invocations.

Version

This hint is available since SDL 3.6.0.


CategoryAPI, CategoryAPIMacro, CategoryHints


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.