Class NSXPCInterface

  • All Implemented Interfaces:
    NSObject

    public class NSXPCInterface
    extends NSObject
    This object holds all information about the interface of an exported or imported object. This includes: what messages are allowed, what kinds of objects are allowed as arguments, what the signature of any reply blocks are, and any information about additional proxy objects. API-Since: 6.0
    • Constructor Detail

      • NSXPCInterface

        protected NSXPCInterface​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NSXPCInterface allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • classesForSelectorArgumentIndexOfReply

        @NotNull
        public @NotNull NSSet<? extends org.moe.natj.objc.Class> classesForSelectorArgumentIndexOfReply​(@NotNull
                                                                                                        @NotNull org.moe.natj.objc.SEL sel,
                                                                                                        long arg,
                                                                                                        boolean ofReply)
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • interfaceForSelectorArgumentIndexOfReply

        @Nullable
        public @Nullable NSXPCInterface interfaceForSelectorArgumentIndexOfReply​(@NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL sel,
                                                                                 long arg,
                                                                                 boolean ofReply)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setClassesForSelectorArgumentIndexOfReply

        public void setClassesForSelectorArgumentIndexOfReply​(@NotNull
                                                              @NotNull NSSet<? extends org.moe.natj.objc.Class> classes,
                                                              @NotNull
                                                              @NotNull org.moe.natj.objc.SEL sel,
                                                              long arg,
                                                              boolean ofReply)
        If an argument to a method in your protocol is a collection class (for example, NSArray or NSDictionary), then the interface must be configured with the set of expected classes contained inside of the collection. The classes argument to this method should be an NSSet containing Class objects, like [MyObject class]. The selector argument specifies which method in the protocol is being configured. The argumentIndex parameter specifies which argument of the method the NSSet applies to. If the NSSet is for an argument of the reply block in the method, pass YES for the ofReply: argument. The first argument is index 0 for both the method and the reply block. If the expected classes are all property list types, calling this method is optional (property list types are automatically allowed for collection objects). You may use this method to further restrict the set of allowed classes.
      • setInterfaceForSelectorArgumentIndexOfReply

        public void setInterfaceForSelectorArgumentIndexOfReply​(@NotNull
                                                                @NotNull NSXPCInterface ifc,
                                                                @NotNull
                                                                @NotNull org.moe.natj.objc.SEL sel,
                                                                long arg,
                                                                boolean ofReply)
        If an argument to a method in your protocol should be sent as a proxy object instead of by copy, then the interface must be configured with the interface of that new proxy object. If the proxy object is to be an argument of the reply block, pass YES for ofReply. The first argument is index 0 for both the method and the reply block.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.