Class NSXPCConnection

All Implemented Interfaces:
NSObjectProtocol, NSXPCProxyCreating, ObjCProtocol

public class NSXPCConnection
extends NSObject
implements NSXPCProxyCreating
  • Constructor Details

    • NSXPCConnection

      public NSXPCConnection()
    • NSXPCConnection

      protected NSXPCConnection​(NSObject.Handle h, long handle)
    • NSXPCConnection

      protected NSXPCConnection​(NSObject.SkipInit skipInit)
    • NSXPCConnection

      public NSXPCConnection​(NSXPCListenerEndpoint endpoint)
  • Method Details

    • getServiceName

      public String getServiceName()
    • getEndpoint

      public NSXPCListenerEndpoint getEndpoint()
    • getExportedInterface

      public NSXPCInterface getExportedInterface()
    • setExportedInterface

      public void setExportedInterface​(NSXPCInterface v)
    • getExportedObject

      public NSObject getExportedObject()
    • setExportedObject

      public void setExportedObject​(NSObject v)
    • getRemoteObjectInterface

      public NSXPCInterface getRemoteObjectInterface()
    • setRemoteObjectInterface

      public void setRemoteObjectInterface​(NSXPCInterface v)
    • remoteObjectProxy

      public NSObject remoteObjectProxy()
      Specified by:
      remoteObjectProxy in interface NSXPCProxyCreating
    • getInterruptionHandler

      public Runnable getInterruptionHandler()
    • setInterruptionHandler

      public void setInterruptionHandler​(Runnable v)
    • getInvalidationHandler

      public Runnable getInvalidationHandler()
    • setInvalidationHandler

      public void setInvalidationHandler​(Runnable v)
    • getAuditSessionIdentifier

      public int getAuditSessionIdentifier()
    • getProcessIdentifier

      public int getProcessIdentifier()
    • getEffectiveUserIdentifier

      public int getEffectiveUserIdentifier()
    • getEffectiveGroupIdentifier

      public int getEffectiveGroupIdentifier()
    • init

      protected long init​(NSXPCListenerEndpoint endpoint)
    • remoteObjectProxy

      public NSObject remoteObjectProxy​(VoidBlock1<NSError> handler)
      Specified by:
      remoteObjectProxy in interface NSXPCProxyCreating
    • synchronousRemoteObjectProxy

      public NSObject synchronousRemoteObjectProxy​(VoidBlock1<NSError> handler)
      Specified by:
      synchronousRemoteObjectProxy in interface NSXPCProxyCreating
      Since:
      Available in iOS 9.0 and later.
    • resume

      public void resume()
    • suspend

      public void suspend()
    • invalidate

      public void invalidate()
    • scheduleSendBarrierBlock

      public void scheduleSendBarrierBlock​(Runnable block)
      Since:
      Available in iOS 13.0 and later.
    • currentConnection

      public static NSXPCConnection currentConnection()