|
@@ -198,6 +198,14 @@ extern DECLSPEC int SDLCALL SDL_AndroidGetExternalStorageState(void);
|
|
|
*/
|
|
|
extern DECLSPEC const char * SDLCALL SDL_AndroidGetExternalStoragePath(void);
|
|
|
|
|
|
+/**
|
|
|
+ \brief Request permissions at runtime.
|
|
|
+
|
|
|
+ This blocks the calling thread until the permission is granted or
|
|
|
+ denied. Returns SDL_TRUE if the permission was granted.
|
|
|
+ */
|
|
|
+extern DECLSPEC SDL_bool SDLCALL SDL_AndroidRequestPermission(const char *permission);
|
|
|
+
|
|
|
#endif /* __ANDROID__ */
|
|
|
|
|
|
/* Platform specific functions for WinRT */
|