@Test public void testGetValue() throws Exception { String udid = IDevice.listUdids()[0]; try ( IDevice device = new IDevice(udid); LockdowndClient client = new LockdowndClient(device, null, true); ) { NSObject node = client.getValue(null, null); assertTrue(node instanceof NSDictionary); NSDictionary dict = (NSDictionary) node; assertNotNull(dict.objectForKey("DeviceName")); } }
public NSObject getValue(String domain, String key) throws IOException { PlistRefOut plistOut = new PlistRefOut(); try { checkResult(LibIMobileDevice.lockdownd_get_value(getRef(), domain, key, plistOut)); PlistRef plist = plistOut.getValue(); return PlistUtil.toJavaPlist(plist); } finally { plistOut.delete(); } }
LockdowndClient implements AutoCloseable { public NSObject getValue(String domain, String key) throws IOException { PlistRefOut plistOut = new PlistRefOut(); try { checkResult(LibIMobileDevice.lockdownd_get_value(getRef(), domain, key, plistOut)); PlistRef plist = plistOut.getValue(); return PlistUtil.toJavaPlist(plist); } finally { plistOut.delete(); } } }
LockdowndClient implements AutoCloseable { public NSObject getValue(String domain, String key) throws IOException { PlistRefOut plistOut = new PlistRefOut(); try { checkResult(LibIMobileDevice.lockdownd_get_value(getRef(), domain, key, plistOut)); PlistRef plist = plistOut.getValue(); return PlistUtil.toJavaPlist(plist); } finally { plistOut.delete(); } } LockdowndClient(LockdowndClientRef ref);  LockdowndClient(IDevice device, String label, boolean handshake); }
LockdowndClient implements AutoCloseable { public NSObject getValue(String domain, String key) throws IOException { PlistRefOut plistOut = new PlistRefOut(); try { checkResult(LibIMobileDevice.lockdownd_get_value(getRef(), domain, key, plistOut)); PlistRef plist = plistOut.getValue(); return PlistUtil.toJavaPlist(plist); } finally { plistOut.delete(); } } LockdowndClient(LockdowndClientRef ref);  LockdowndClient(IDevice device, String label, boolean handshake); LockdowndServiceDescriptor startService(String identifier); NSObject getValue(String domain, String key); synchronized void dispose(); @Override void close(); }
LockdowndClient implements AutoCloseable { public NSObject getValue(String domain, String key) throws IOException { PlistRefOut plistOut = new PlistRefOut(); try { checkResult(LibIMobileDevice.lockdownd_get_value(getRef(), domain, key, plistOut)); PlistRef plist = plistOut.getValue(); return PlistUtil.toJavaPlist(plist); } finally { plistOut.delete(); } } LockdowndClient(LockdowndClientRef ref);  LockdowndClient(IDevice device, String label, boolean handshake); LockdowndServiceDescriptor startService(String identifier); NSObject getValue(String domain, String key); synchronized void dispose(); @Override void close();  }