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 LockdowndClientRef ref  
  • Constructor Summary

    Constructors
    Constructor Description
    LockdowndClient​(IDevice device, java.lang.String label, boolean handshake)
    Creates a new LockdowndClient for the specified IDevice.
  • Method Summary

    Modifier and Type Method Description
    protected void checkDisposed()  
    void close()  
    void dispose()  
    protected LockdowndClientRef getRef()  
    com.dd.plist.NSObject getValue​(java.lang.String domain, java.lang.String key)
    Retrieves a preferences plist using an optional domain and/or key name.
    LockdowndServiceDescriptor startService​(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

  • Constructor Details

    • LockdowndClient

      public LockdowndClient​(IDevice device, java.lang.String label, boolean handshake)
      Creates a new LockdowndClient for the specified IDevice.
      Parameters:
      device - the device to create a LockdowndClient for.
      label - the label to use for communication. Usually the program name. Pass null to disable sending the label in requests to lockdownd.
      handshake - true if initial handshake should be done.
  • Method Details

    • getRef

      protected LockdowndClientRef getRef()
    • startService

      public LockdowndServiceDescriptor startService​(java.lang.String identifier)
      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.IOException
      Retrieves a preferences plist using an optional domain and/or key name.
      Parameters:
      domain - the domain to query on or null for the global domain.
      key - the key name to request or null to 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:
      close in interface java.lang.AutoCloseable