System.IOUtils.TPath.GetCameraPath
Delphi
class function GetCameraPath: string; static;
C++
static System::UnicodeString __fastcall GetCameraPath();
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TPath |
説明
カメラで撮ったユーザーの写真を格納するディレクトリへのパスを返します。
アプリケーションを実行しているシステムが要求されているフォルダをサポートしていない場合、または、要求されているフォルダがシステム上に存在しない場合、この関数は代わりに空の文字列を返します。
この関数は GetPicturesPath と同様に動作しますが、Android プラットフォームは例外で、Android がデバイス カメラで撮った写真やビデオを格納するフォルダへのパスを返します。
- Windows および Mac OS X では、ユーザー固有の、アプリケーション非依存ディレクトリを指します。
- メモ: Mac OS X では、サンドボックス モードの場合、このパスにアクセスするには、com.apple.security.assets.pictures.read-only または com.apple.security.assets.pictures.read-write を、資格リスト に追加しなければなりません。
- iOS Device では、このディレクトリが現在サポートされていないため、空文字列が返されます。
- iOS Simulator および Android では、ユーザー固有、アプリケーション固有のディレクトリを指します。
| プラットフォーム | サンプル パス | パス ID |
|---|---|---|
| Windows XP | C:\Documents and Settings\<username>\My Documents\My Pictures | CSIDL_MYPICTURES |
| Windows Vista 以降 | C:\Users\<username>\Pictures | FOLDERID_Pictures |
| Mac OS X | /Users/<username>/Pictures | NSPicturesDirectory |
| iOS デバイス | ||
| iOS シミュレータ | /Users/<username>/Library/Developer/CoreSimulator/Devices/<Device ID>/data/Containers/Data/Application/<application ID>/Pictures | NSPicturesDirectory |
| Android | /storage/emulated/0/Android/data/<application ID>/files/DCIM |