sdlGetAndroidExternalStorageState function system

int sdlGetAndroidExternalStorageState()

Get the current state of external storage for this Android application.

The current state of external storage, a bitmask of these values: SDL_ANDROID_EXTERNAL_STORAGE_READ, SDL_ANDROID_EXTERNAL_STORAGE_WRITE.

If external storage is currently unavailable, this will return 0.

\returns the current state of external storage, or 0 if external storage is currently unavailable.

\since This function is available since SDL 3.2.0.

\sa SDL_GetAndroidExternalStoragePath

extern SDL_DECLSPEC Uint32 SDLCALL SDL_GetAndroidExternalStorageState(void)

Implementation

int sdlGetAndroidExternalStorageState() {
  final sdlGetAndroidExternalStorageStateLookupFunction = _libSdl
      .lookupFunction<Uint32 Function(), int Function()>(
        'SDL_GetAndroidExternalStorageState',
      );
  return sdlGetAndroidExternalStorageStateLookupFunction();
}