| Method | What it does |
| Usbmux.connect(agent) | usbmuxd: mux.devices() → [{ id, udid, connection, productId, location }], mux.pairRecord(udid), mux.buid(), mux.connect(deviceId, port) (a DeviceConnection tunnelled to a port on the device). |
| Lockdown.open(mux, device) | A lockdown session (reopened by itself when the device closes an idle one): getValue(domain, key), service(name) → a DeviceConnection, close(), pair, sessionId. |
| lockdown.apps(type) | The apps ("User", "System" or "Any") with their bundle values, Entitlements, Path, Container, SignerIdentity. |
| lockdown.afc(name) | An AfcClient (the media area by default). |
| lockdown.appContainer(bundleId) | { afc, scope }: the whole container of a development build (get-task-allow), or the Documents of an app with file sharing. |
| lockdown.syslog(onLines) | The live system log, line by line (octal escapes decoded); returns the connection to close(). |
| lockdown.crashReports() | An AfcClient on the crash reports, after asking the mover to gather them. |
| lockdown.profiles() | The installed provisioning profiles: [{ data, name, uuid, team, appId, expires, entitlements, devices, allDevices }]. |
| Lockdown.errorText(code) | A lockdown error code in words. |
| new AfcClient(connection) | AFC on a service connection: list(path), info(path) → { size, type, dir, link, mtime, target }, dir(path), read(path, onProgress), write(path, bytes), mkdir(path), close(). |
| new DeviceConnection(socket) | A buffered connection over an agent socket: read(length) (exactly that many bytes), stream(onData), write(bytes), startTls({ cert, key }), close(), onclose, socket. |