Package apple.uikit

Class UIAction

    • Constructor Detail

      • UIAction

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • actionWithTitleImageIdentifierHandler

        public static UIAction actionWithTitleImageIdentifierHandler​(java.lang.String title,
                                                                     UIImage image,
                                                                     java.lang.String identifier,
                                                                     UIAction.Block_actionWithTitleImageIdentifierHandler handler)
        Creates a UIAction with the given arguments.
        Parameters:
        title - The action's title.
        image - Image that can appear next to this action, if needed.
        identifier - The action's identifier. Pass nil to use an auto-generated identifier.
        handler - Handler block. Called when the user selects the action.
        Returns:
        A new UIAction.
      • alloc

        public static UIAction alloc()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • attributes

        public long attributes()
        This action's style.
      • automaticallyNotifiesObserversForKey

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

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

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

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

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

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

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

        public java.lang.String discoverabilityTitle()
        Elaborated title, if any.
      • hash_static

        public static long hash_static()
      • identifier

        public java.lang.String identifier()
        This action's identifier.
      • instanceMethodSignatureForSelector

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

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

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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

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

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

        public void setAttributes​(long value)
        This action's style.
      • setDiscoverabilityTitle

        public void setDiscoverabilityTitle​(java.lang.String value)
        Elaborated title, if any.
      • setImage

        public void setImage​(UIImage value)
        Image that can appear next to this action.
      • setState

        public void setState​(long value)
        State that can appear next to this action.
      • setTitle

        public void setTitle​(java.lang.String value)
        Short display title.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • state

        public long state()
        State that can appear next to this action.
      • superclass_static

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

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class UIMenuElement
      • title

        public java.lang.String title()
        Short display title.
        Overrides:
        title in class UIMenuElement
      • version_static

        public static long version_static()
      • actionWithHandler

        public static UIAction actionWithHandler​(UIAction.Block_actionWithHandler handler)
        Creates a UIAction with an empty title, nil image, and automatically generated identifier
        Parameters:
        handler - Handler block. Called when the user selects the action.
        Returns:
        A new UIAction.
      • sender

        public java.lang.Object sender()
        If available, the object on behalf of which the actionHandler is called.