Photo - geiszla/iOSLib GitHub Wiki
int Id - Primary key of photo from Photos.sqlite's ZGENERICASSET table.
string Name - Name of photo (E.g. IMG_1254)
string Extension - Extension of photo (E.g. JPG)
string MediaType - "Photo" or "Video"
string FileType - File type (E.g. public.jpeg)
iDevice Device - Parent device of Photo object
string Path - Path of photo on the device
int Size - Size of photo in bytes
DateTime CreationTime - Creation date and time
DateTime ModificationTime - Modification date and time
List<Album> AlbumList - List of albums the photo is in
void Save(string savePath) - Saves photo from device to the computer to the specified path along with its basic properties in an xml.
Example:
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
devices[0].Photos.PhotoList[0].Save(desktopPath);void Remove() - Removes photo from device (restart Photos.app to see changes).
Example:
devices[0].Photos.PhotoList.Where(x => x.Name == "IMG_1833").FirstOrDefault().Remove();string GetProperty(string propertyName) - Gets photo properties from Photos.sqlite from "ZGENERICASSET" and "ZADDITIONALASSETATTRIBUTES" tables (for search in other tables see Photos.CustomDatabaseSearch()).
Example:
string returnedProperty = devices[0].Photos.PhotoList[0].GetProperty("ZORIGINALHEIGHT");