Home - geiszla/iOSLib GitHub Wiki

iOSLib Documentation

iOSLib

static string TempFolder - Folder to copy photos.sqlite temporarily
static List<iDevice>
GetDevices() - Search for connected iOS devices

iDevice

iDevice(string udid) - Creates an iDevice instance (usually done by iOSLib.GetDevices())

string Udid - Unique identifier of the iDevice
Photos Photos - Photos object, made by GetPhotos()

void Connect() - Connect to the device
void Disconnect() - Disconnect from the device
void GetPhotos() - Get photos from the device

Photos

long Count - Number of photos in the photo list
List<Photo> PhotoList - List of photos

void RefreshDatabase() - Refreshes photo database
bool Exists(Photo photo) - Checks for Photo object in the photo list
void SavePhotos(List<Photo> photoList, string savePath) - Save multiple photos to disk
void RemovePhotos(List<Photo> photoList) - Remove multiple photos from the device (permanent) string CustomDatabaseSearch(string tableName, string columnName, string primaryKeyName, string primaryKeyValue) - Searches photo database for attribute

Photo

int Id - Primary key of photo from Photos.sqlite
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 the photo on the device
int Size - Size of the 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) - Save photo to the disk
void Remove() - Remove photo from the device (permanent)
string GetProperty(string propertyName) - Get a property of the photo

Album

int Id - Primary key of album from Photos.sqlite
string Name - Name of album (E.g. Instagram)

⚠️ **GitHub.com Fallback** ⚠️