System.IOUtils.TPath.GetCameraPath

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function GetCameraPath: string; static;

C++

static System::UnicodeString __fastcall GetCameraPath();

Properties

Type Visibility Source Unit Parent
function public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TPath

Description

Returns the path to the directory where user pictures taken with a camera are stored.

If the system running your application does not support the requested folder, or if the requested folder does not exist in the system, this function returns an empty string instead.

This function works the same as GetPicturesPath except for the Android platform, where it returns the path to the folder where Android stores photos and videos taken with the device camera.

  • On Windows and OS X, it points to a user-specific, application-agnostic directory.
    Note: On OS X, for Sand-box mode, to access this path you have to add com.apple.security.assets.pictures.read-only or com.apple.security.assets.pictures.read-write to the Entitlement List.
  • On iOS Device, it returns an empty string as this directory is currently not supported.
  • On iOS Simulator and Android, it points to a user-specific, application-specific directory.
Platform Sample path Path ID
Windows XP C:\Documents and Settings\<username>\My Documents\My Pictures CSIDL_MYPICTURES
Windows Vista or later C:\Users\<username>\Pictures FOLDERID_Pictures
OS X /Users/<username>/Pictures NSPicturesDirectory
iOS Device
iOS Simulator /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

See Also