Package apple.uikit

Class UIMenu

    • Constructor Detail

      • UIMenu

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static UIMenu alloc()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • 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)
      • children

        public NSArray<? extends UIMenuElement> children()
        The menu's sub-elements and sub-menus. On iOS 14.0, elements of your own menus are mutable, -copying a menu will produce mutable elements, and UIKit will take immutable copies of menus it receives. Prior to iOS 14.0, menus are always fully immutable.
      • 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()
      • hash_static

        public static long hash_static()
      • identifier

        public java.lang.String identifier()
        Unique 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)
      • menuByReplacingChildren

        public UIMenu menuByReplacingChildren​(NSArray<? extends UIMenuElement> newChildren)
        Copies this menu and replaces its children.
        Parameters:
        newChildren - The replacement children.
        Returns:
        A copy of this menu with updated children.
      • menuWithTitleChildren

        public static UIMenu menuWithTitleChildren​(java.lang.String title,
                                                   NSArray<? extends UIMenuElement> children)
        Creates a UIMenu with the given arguments.
        Parameters:
        title - The menu's title.
        children - The menu's action-based sub-elements and sub-menus.
        Returns:
        A new UIMenu.
      • menuWithTitleImageIdentifierOptionsChildren

        public static UIMenu menuWithTitleImageIdentifierOptionsChildren​(java.lang.String title,
                                                                         UIImage image,
                                                                         java.lang.String identifier,
                                                                         long options,
                                                                         NSArray<? extends UIMenuElement> children)
        Creates a UIMenu with the given arguments.
        Parameters:
        title - The menu's title.
        image - Image to be displayed alongside the menu's title.
        identifier - The menu's unique identifier. Pass nil to use an auto-generated identifier.
        options - The menu's options.
        children - The menu's action-based sub-elements and sub-menus.
        Returns:
        A new UIMenu.
      • new_objc

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

        public long options()
        Options.
      • resolveClassMethod

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

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

        public static void setVersion_static​(long aVersion)
      • 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
      • version_static

        public static long version_static()
      • menuWithChildren

        public static UIMenu menuWithChildren​(NSArray<? extends UIMenuElement> children)
        Creates a UIMenu with an empty title, nil image, automatically generated identifier, and default options.
        Parameters:
        children - The menu's action-based sub-elements and sub-menus.
        Returns:
        A new UIMenu.