目次 - SDL 3.0 API(機能別) - 環境固有の機能 - SDL_GetAndroidInternalStoragePath

SDL_GetAndroidInternalStoragePath

Androidアプリケーションの内部ストレージのパス名を得る

ヘッダ

SDL3/SDL_system.h

構文

const char * SDL_GetAndroidInternalStoragePath(void);

戻り値

(const char *) 成功のときアプリケーションが使う内部ストレージのパス名, 失敗のときNULLを戻す. SDL_GetError()を呼んで詳細を知ることができる.

詳細

パスはアプリケーション固有で, 他のアプリケーションは書き込めない.

典型的な内部ストレージのパス名は次のような形式になっている: /data/data/your.app.package/files

これはandroid.content.Context.getFilesDir()のCによるラッパーである.

https://developer.android.com/reference/android/content/Context#getFilesDir()

バージョン

SDL 3.2.0以降

関連項目

SDL Wikiへのリンク

SDL_GetAndroidInternalStoragePath - SDL Wiki