Package apple.uikit

Class UIKeyCommand

    • Constructor Detail

      • UIKeyCommand

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UIKeyCommand 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()
      • 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)
      • isSubclassOfClass

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

        public static UIKeyCommand keyCommandWithInputModifierFlagsAction​(@NotNull
                                                                          @NotNull java.lang.String input,
                                                                          long modifierFlags,
                                                                          @NotNull
                                                                          @NotNull org.moe.natj.objc.SEL action)
        Creates an key command that will _not_ be discoverable in the UI.
      • keyCommandWithInputModifierFlagsActionDiscoverabilityTitle

        @Deprecated
        public static UIKeyCommand keyCommandWithInputModifierFlagsActionDiscoverabilityTitle​(@NotNull
                                                                                              @NotNull java.lang.String input,
                                                                                              long modifierFlags,
                                                                                              @NotNull
                                                                                              @NotNull org.moe.natj.objc.SEL action,
                                                                                              @NotNull
                                                                                              @NotNull java.lang.String discoverabilityTitle)
        Deprecated.
        Key Commands with a discoverabilityTitle _will_ be discoverable in the UI. API-Since: 9.0 Deprecated-Since: 13.0
      • 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)
      • 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()
      • version_static

        public static long version_static()
      • input

        @Nullable
        public @Nullable java.lang.String input()
      • modifierFlags

        public long modifierFlags()
      • _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 UICommand
      • action

        @Nullable
        public @Nullable org.moe.natj.objc.SEL action()
        Action to take on choosing this command.
        Overrides:
        action in class UICommand
      • commandWithTitleImageActionInputModifierFlagsPropertyList

        public static UIKeyCommand commandWithTitleImageActionInputModifierFlagsPropertyList​(@NotNull
                                                                                             @NotNull java.lang.String title,
                                                                                             @Nullable
                                                                                             @Nullable UIImage image,
                                                                                             @NotNull
                                                                                             @NotNull org.moe.natj.objc.SEL action,
                                                                                             @NotNull
                                                                                             @NotNull java.lang.String input,
                                                                                             long modifierFlags,
                                                                                             @Nullable
                                                                                             @Nullable java.lang.Object propertyList)
        Initializes a key command.
        Parameters:
        title - Short display title. This should be localized.
        image - Image that can appear next to this command, if needed.
        action - Action to take on choosing this command.
        input - Keys that must be pressed to choose this command.
        modifierFlags - Bit mask of key modifier flags to choose this command.
        propertyList - Property list object to distinguish commands, if needed.
        Returns:
        A new key command.
      • commandWithTitleImageActionInputModifierFlagsPropertyListAlternates

        public static UIKeyCommand commandWithTitleImageActionInputModifierFlagsPropertyListAlternates​(@NotNull
                                                                                                       @NotNull java.lang.String title,
                                                                                                       @Nullable
                                                                                                       @Nullable UIImage image,
                                                                                                       @NotNull
                                                                                                       @NotNull org.moe.natj.objc.SEL action,
                                                                                                       @NotNull
                                                                                                       @NotNull java.lang.String input,
                                                                                                       long modifierFlags,
                                                                                                       @Nullable
                                                                                                       @Nullable java.lang.Object propertyList,
                                                                                                       @NotNull
                                                                                                       @NotNull NSArray<? extends UICommandAlternate> alternates)
        Initializes a key command with alternates.
        Parameters:
        title - Short display title. This should be localized.
        image - Image that can appear next to this command, if needed.
        action - Action to take on choosing this command.
        input - Keys that must be pressed to choose this command.
        modifierFlags - Bit mask of key modifier flags to choose this command.
        propertyList - Property list object to distinguish commands, if needed.
        alternates - Alternates that differ in modifier flags.
        Returns:
        A new key command.
      • commandWithTitleImageActionPropertyList

        public static UIKeyCommand commandWithTitleImageActionPropertyList​(@NotNull
                                                                           @NotNull java.lang.String title,
                                                                           @Nullable
                                                                           @Nullable UIImage image,
                                                                           @NotNull
                                                                           @NotNull org.moe.natj.objc.SEL action,
                                                                           @Nullable
                                                                           @Nullable java.lang.Object propertyList)
      • commandWithTitleImageActionPropertyListAlternates

        public static UIKeyCommand commandWithTitleImageActionPropertyListAlternates​(@NotNull
                                                                                     @NotNull java.lang.String title,
                                                                                     @Nullable
                                                                                     @Nullable UIImage image,
                                                                                     @NotNull
                                                                                     @NotNull org.moe.natj.objc.SEL action,
                                                                                     @Nullable
                                                                                     @Nullable java.lang.Object propertyList,
                                                                                     @NotNull
                                                                                     @NotNull NSArray<? extends UICommandAlternate> alternates)
      • image

        @Nullable
        public @Nullable UIImage image()
        Image that can appear next to this command. API-Since: 13.0
        Specified by:
        image in interface UIMenuLeaf
        Overrides:
        image in class UICommand
      • propertyList

        @Nullable
        public @Nullable java.lang.Object propertyList()
        Property list object to distinguish commands, if needed. API-Since: 13.0
        Overrides:
        propertyList in class UICommand
      • setImage

        public void setImage​(@Nullable
                             @Nullable UIImage value)
        Image that can appear next to this command. API-Since: 13.0
        Specified by:
        setImage in interface UIMenuLeaf
        Overrides:
        setImage in class UICommand
      • setState

        public void setState​(long value)
        State that can appear next to this command. API-Since: 13.0
        Specified by:
        setState in interface UIMenuLeaf
        Overrides:
        setState in class UICommand
      • setTitle

        public void setTitle​(@NotNull
                             @NotNull java.lang.String value)
        Short display title. API-Since: 13.0
        Specified by:
        setTitle in interface UIMenuLeaf
        Overrides:
        setTitle in class UICommand
      • state

        public long state()
        State that can appear next to this command. API-Since: 13.0
        Specified by:
        state in interface UIMenuLeaf
        Overrides:
        state in class UICommand
      • title

        @NotNull
        public @NotNull java.lang.String title()
        Short display title. API-Since: 13.0
        Specified by:
        title in interface UIMenuLeaf
        Overrides:
        title in class UICommand
      • allowsAutomaticLocalization

        public boolean allowsAutomaticLocalization()
        Suppose the system detects a given key command that is not reachable in the current keyboard layout; it will localize the key command to something reachable. By setting this property to NO, you will opt-out this menu item from the system-provided localization. YES by default for apps linked against 15.0 and later SDK. API-Since: 15.0
      • allowsAutomaticMirroring

        public boolean allowsAutomaticMirroring()
        Suppose the system detects a given key command with the following input string [ ] { } ( ) < > ← → in a right-to-left user interface environment (UIUserInterfaceLayoutDirectionRightToLeft); in that case, the system will automatically mirror the key command. For example, a pair of key commands with input { and } will be localized to } and { in a right-to-left user interface. By setting this property to NO, you will opt-out this key command of automatically mirroring in RTL. It would be best only to do this if your action will result in some sort of directional change in the UI, e.g. a segmented control for text alignment or a D-pad in a game. YES by default for apps linked against 15.0 and later SDK. API-Since: 15.0
      • setAllowsAutomaticLocalization

        public void setAllowsAutomaticLocalization​(boolean value)
        Suppose the system detects a given key command that is not reachable in the current keyboard layout; it will localize the key command to something reachable. By setting this property to NO, you will opt-out this menu item from the system-provided localization. YES by default for apps linked against 15.0 and later SDK. API-Since: 15.0
      • setAllowsAutomaticMirroring

        public void setAllowsAutomaticMirroring​(boolean value)
        Suppose the system detects a given key command with the following input string [ ] { } ( ) < > ← → in a right-to-left user interface environment (UIUserInterfaceLayoutDirectionRightToLeft); in that case, the system will automatically mirror the key command. For example, a pair of key commands with input { and } will be localized to } and { in a right-to-left user interface. By setting this property to NO, you will opt-out this key command of automatically mirroring in RTL. It would be best only to do this if your action will result in some sort of directional change in the UI, e.g. a segmented control for text alignment or a D-pad in a game. YES by default for apps linked against 15.0 and later SDK. API-Since: 15.0
      • setWantsPriorityOverSystemBehavior

        public void setWantsPriorityOverSystemBehavior​(boolean value)
        Indicates whether the key command should execute if it conflicts with focus or text-editing system commands, defaults to @c NO API-Since: 15.0
      • wantsPriorityOverSystemBehavior

        public boolean wantsPriorityOverSystemBehavior()
        Indicates whether the key command should execute if it conflicts with focus or text-editing system commands, defaults to @c NO API-Since: 15.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.