public class NSXPCConnection extends NSObject implements NSXPCProxyCreating
| Modifier and Type | Class and Description |
|---|---|
static interface |
NSXPCConnection.Block_interruptionHandler_ret |
static interface |
NSXPCConnection.Block_invalidationHandler_ret |
static interface |
NSXPCConnection.Block_scheduleSendBarrierBlock |
static interface |
NSXPCConnection.Block_setInterruptionHandler |
static interface |
NSXPCConnection.Block_setInvalidationHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retNSXPCProxyCreating.Block_remoteObjectProxyWithErrorHandler, NSXPCProxyCreating.Block_synchronousRemoteObjectProxyWithErrorHandler| Modifier | Constructor and Description |
|---|---|
protected |
NSXPCConnection(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static NSXPCConnection |
alloc() |
static NSXPCConnection |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
int |
auditSessionIdentifier()
These attributes describe the security attributes of the connection.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static NSXPCConnection |
currentConnection()
Get the current connection, in the context of a call to a method on your exported object.
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
int |
effectiveGroupIdentifier() |
int |
effectiveUserIdentifier() |
NSXPCListenerEndpoint |
endpoint() |
NSXPCInterface |
exportedInterface()
The interface that describes messages that are allowed to be received by the exported object on this connection.
|
java.lang.Object |
exportedObject()
Set an exported object for the connection.
|
static long |
hash_static() |
NSXPCConnection |
init() |
NSXPCConnection |
initWithListenerEndpoint(NSXPCListenerEndpoint endpoint)
Initialize an NSXPCConnection that will connect to an NSXPCListener (identified by its NSXPCListenerEndpoint).
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
NSXPCConnection.Block_interruptionHandler_ret |
interruptionHandler()
The interruption handler will be called if the remote process exits or crashes.
|
void |
invalidate()
Invalidate the connection.
|
NSXPCConnection.Block_invalidationHandler_ret |
invalidationHandler()
The invalidation handler will be called if the connection can not be formed or the connection has terminated and may not be re-established.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static NSXPCConnection |
new_objc() |
int |
processIdentifier() |
NSXPCInterface |
remoteObjectInterface()
The interface that describes messages that are allowed to be received by object that has been "imported" to this connection (exported from the other side).
|
java.lang.Object |
remoteObjectProxy()
Returns a proxy object with no error handling block.
|
java.lang.Object |
remoteObjectProxyWithErrorHandler(NSXPCProxyCreating.Block_remoteObjectProxyWithErrorHandler handler)
Returns a proxy object which will invoke the error handling block if an error occurs on the connection.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
resume()
All connections start suspended.
|
void |
scheduleSendBarrierBlock(NSXPCConnection.Block_scheduleSendBarrierBlock block)
Add a barrier block to be executed on the connection.
|
java.lang.String |
serviceName() |
void |
setExportedInterface(NSXPCInterface value)
The interface that describes messages that are allowed to be received by the exported object on this connection.
|
void |
setExportedObject(java.lang.Object value)
Set an exported object for the connection.
|
void |
setInterruptionHandler(NSXPCConnection.Block_setInterruptionHandler value)
The interruption handler will be called if the remote process exits or crashes.
|
void |
setInvalidationHandler(NSXPCConnection.Block_setInvalidationHandler value)
The invalidation handler will be called if the connection can not be formed or the connection has terminated and may not be re-established.
|
void |
setRemoteObjectInterface(NSXPCInterface value)
The interface that describes messages that are allowed to be received by object that has been "imported" to this connection (exported from the other side).
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
void |
suspend()
Suspend the connection.
|
java.lang.Object |
synchronousRemoteObjectProxyWithErrorHandler(NSXPCProxyCreating.Block_synchronousRemoteObjectProxyWithErrorHandler handler)
Make a synchronous IPC call instead of the default async behavior.
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static NSXPCConnection alloc()
public static NSXPCConnection allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public int auditSessionIdentifier()
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public int effectiveGroupIdentifier()
public int effectiveUserIdentifier()
public NSXPCListenerEndpoint endpoint()
public NSXPCInterface exportedInterface()
public java.lang.Object exportedObject()
public static long hash_static()
public NSXPCConnection init()
public NSXPCConnection initWithListenerEndpoint(NSXPCListenerEndpoint endpoint)
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public NSXPCConnection.Block_interruptionHandler_ret interruptionHandler()
public void invalidate()
public NSXPCConnection.Block_invalidationHandler_ret invalidationHandler()
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static NSXPCConnection new_objc()
public int processIdentifier()
public NSXPCInterface remoteObjectInterface()
public java.lang.Object remoteObjectProxy()
NSXPCProxyCreatingremoteObjectProxy in interface NSXPCProxyCreatingpublic java.lang.Object remoteObjectProxyWithErrorHandler(NSXPCProxyCreating.Block_remoteObjectProxyWithErrorHandler handler)
NSXPCProxyCreatingremoteObjectProxyWithErrorHandler in interface NSXPCProxyCreatingpublic static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void resume()
public java.lang.String serviceName()
public void setExportedInterface(NSXPCInterface value)
public void setExportedObject(java.lang.Object value)
public void setInterruptionHandler(NSXPCConnection.Block_setInterruptionHandler value)
public void setInvalidationHandler(NSXPCConnection.Block_setInvalidationHandler value)
public void setRemoteObjectInterface(NSXPCInterface value)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public void suspend()
public java.lang.Object synchronousRemoteObjectProxyWithErrorHandler(NSXPCProxyCreating.Block_synchronousRemoteObjectProxyWithErrorHandler handler)
NSXPCProxyCreatingsynchronousRemoteObjectProxyWithErrorHandler in interface NSXPCProxyCreatingpublic static long version_static()
public static NSXPCConnection currentConnection()
public void scheduleSendBarrierBlock(NSXPCConnection.Block_scheduleSendBarrierBlock block)