Android: add helper function to open an URL/URI (see bug 2783)

This commit is contained in:
Sylvain Becker 2020-10-01 14:41:09 +02:00
parent 45c644cc99
commit dd55bfe89c
3 changed files with 47 additions and 0 deletions

View file

@ -206,6 +206,13 @@ extern DECLSPEC const char * SDLCALL SDL_AndroidGetExternalStoragePath(void);
*/
extern DECLSPEC SDL_bool SDLCALL SDL_AndroidRequestPermission(const char *permission);
/**
\brief Open an URL / URI in the browser or other
\return 0 on success, or -1 on error.
*/
extern DECLSPEC int SDLCALL SDL_AndroidOpenURL(const char *url);
#endif /* __ANDROID__ */
/* Platform specific functions for WinRT */