iDevice - geiszla/iOSLib GitHub Wiki
iDevice(string udid) - Creates an iDevice instance. This is included in iOSLib.GetDevices(), so you don't have to use it normally.
Example:
string udid = "e0101010d38bde8e6740011211af315301010223";
iDevice newDevice = new iDevice(udid);string Udid - Unique identifier of the iDevice.
Photos Photos - All the photo related variables and functions are located here. It is created by GetPhotos() function.
##Functions
void Connect() - Connects to the device using idevice_new function. Needs to be disconnected with Disconnect() after use.
void Disconnect() - Disconnects device and frees all the unnecessary variables. Recommended to use to avoid memory leakage.
Example:
using System.Collections.Generic;
List<iDevice> devices = iOSLib.GetDevices();
devices[0].Connect();
// Working with the device
devices[0].Disconnect();void GetPhotos() - Copies Photos.sqlite file from /var/mobile/Media/PhotoData folder from the device to iOSLib.TempFolder and reads the photos from it creating iDevice.Photos object on the current iDevice.
Example:
devices[0].GetPhotos();