Package org.robovm.libimobiledevice
Class LockdowndClient
java.lang.Object
org.robovm.libimobiledevice.LockdowndClient
- All Implemented Interfaces:
java.lang.AutoCloseable
public class LockdowndClient
extends java.lang.Object
implements java.lang.AutoCloseable
Handles device connection communication.
-
Field Summary
Fields Modifier and Type Field Description protected LockdowndClientRefref -
Constructor Summary
Constructors Constructor Description LockdowndClient(IDevice device, java.lang.String label, boolean handshake)Creates a newLockdowndClientfor the specifiedIDevice. -
Method Summary
Modifier and Type Method Description protected voidcheckDisposed()voidclose()voiddispose()protected LockdowndClientRefgetRef()com.dd.plist.NSObjectgetValue(java.lang.String domain, java.lang.String key)Retrieves a preferences plist using an optional domain and/or key name.LockdowndServiceDescriptorstartService(java.lang.String identifier)Requests to start a service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ref
-
-
Constructor Details
-
LockdowndClient
Creates a newLockdowndClientfor the specifiedIDevice.- Parameters:
device- the device to create aLockdowndClientfor.label- the label to use for communication. Usually the program name. Passnullto disable sending the label in requests to lockdownd.handshake-trueif initial handshake should be done.
-
-
Method Details
-
getRef
-
startService
Requests to start a service.- Parameters:
identifier- the name of the service to start.- Returns:
- the service descriptor.
-
getValue
public com.dd.plist.NSObject getValue(java.lang.String domain, java.lang.String key) throws java.io.IOExceptionRetrieves a preferences plist using an optional domain and/or key name.- Parameters:
domain- the domain to query on ornullfor the global domain.key- the key name to request ornullto query for all keys.- Returns:
- a plist node representing the result value node.
- Throws:
java.io.IOException
-
checkDisposed
protected final void checkDisposed() -
dispose
public void dispose() -
close
public void close()- Specified by:
closein interfacejava.lang.AutoCloseable
-