Class UIKeyCommand

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, UIAccessibilityIdentification, ObjCProtocol

public class UIKeyCommand
extends UICommand
  • Constructor Details

  • Method Details

    • getTitle

      public String getTitle()
      Overrides:
      getTitle in class UICommand
      Since:
      Available in iOS 13.0 and later.
    • setTitle

      public void setTitle​(String v)
      Overrides:
      setTitle in class UICommand
      Since:
      Available in iOS 13.0 and later.
    • getImage

      public UIImage getImage()
      Overrides:
      getImage in class UICommand
      Since:
      Available in iOS 13.0 and later.
    • setImage

      public void setImage​(UIImage v)
      Overrides:
      setImage in class UICommand
      Since:
      Available in iOS 13.0 and later.
    • getDiscoverabilityTitle

      public String getDiscoverabilityTitle()
      Overrides:
      getDiscoverabilityTitle in class UICommand
      Since:
      Available in iOS 9.0 and later.
    • setDiscoverabilityTitle

      public void setDiscoverabilityTitle​(String v)
      Overrides:
      setDiscoverabilityTitle in class UICommand
      Since:
      Available in iOS 9.0 and later.
    • getAction

      public Selector getAction()
      Overrides:
      getAction in class UICommand
    • getInput

      public String getInput()
    • getModifierFlags

      public UIKeyModifierFlags getModifierFlags()
    • getPropertyList

      public NSObject getPropertyList()
      Overrides:
      getPropertyList in class UICommand
      Since:
      Available in iOS 13.0 and later.
    • getAttributes

      public UIMenuElementAttributes getAttributes()
      Overrides:
      getAttributes in class UICommand
      Since:
      Available in iOS 13.0 and later.
    • setAttributes

      public void setAttributes​(UIMenuElementAttributes v)
      Overrides:
      setAttributes in class UICommand
      Since:
      Available in iOS 13.0 and later.
    • getState

      public UIMenuElementState getState()
      Overrides:
      getState in class UICommand
      Since:
      Available in iOS 13.0 and later.
    • setState

      public void setState​(UIMenuElementState v)
      Overrides:
      setState in class UICommand
      Since:
      Available in iOS 13.0 and later.
    • getAlternates

      public NSArray<UICommandAlternate> getAlternates()
      Overrides:
      getAlternates in class UICommand
      Since:
      Available in iOS 13.0 and later.
    • wantsPriorityOverSystemBehavior

      public boolean wantsPriorityOverSystemBehavior()
      Since:
      Available in iOS 15.0 and later.
    • setWantsPriorityOverSystemBehavior

      public void setWantsPriorityOverSystemBehavior​(boolean v)
      Since:
      Available in iOS 15.0 and later.
    • allowsAutomaticLocalization

      public boolean allowsAutomaticLocalization()
      Since:
      Available in iOS 15.0 and later.
    • setAllowsAutomaticLocalization

      public void setAllowsAutomaticLocalization​(boolean v)
      Since:
      Available in iOS 15.0 and later.
    • allowsAutomaticMirroring

      public boolean allowsAutomaticMirroring()
      Since:
      Available in iOS 15.0 and later.
    • setAllowsAutomaticMirroring

      public void setAllowsAutomaticMirroring​(boolean v)
      Since:
      Available in iOS 15.0 and later.
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • UpArrow

      public static String UpArrow()
    • DownArrow

      public static String DownArrow()
    • LeftArrow

      public static String LeftArrow()
    • RightArrow

      public static String RightArrow()
    • Escape

      public static String Escape()
    • PageUp

      public static String PageUp()
    • PageDown

      public static String PageDown()
    • Home

      public static String Home()
      Since:
      Available in iOS 13.4 and later.
    • End

      public static String End()
      Since:
      Available in iOS 13.4 and later.
    • F1

      public static String F1()
      Since:
      Available in iOS 13.4 and later.
    • F2

      public static String F2()
      Since:
      Available in iOS 13.4 and later.
    • F3

      public static String F3()
      Since:
      Available in iOS 13.4 and later.
    • F4

      public static String F4()
      Since:
      Available in iOS 13.4 and later.
    • F5

      public static String F5()
      Since:
      Available in iOS 13.4 and later.
    • F6

      public static String F6()
      Since:
      Available in iOS 13.4 and later.
    • F7

      public static String F7()
      Since:
      Available in iOS 13.4 and later.
    • F8

      public static String F8()
      Since:
      Available in iOS 13.4 and later.
    • F9

      public static String F9()
      Since:
      Available in iOS 13.4 and later.
    • F10

      public static String F10()
      Since:
      Available in iOS 13.4 and later.
    • F11

      public static String F11()
      Since:
      Available in iOS 13.4 and later.
    • F12

      public static String F12()
      Since:
      Available in iOS 13.4 and later.
    • Delete

      public static String Delete()
      Since:
      Available in iOS 15.0 and later.
    • init

      protected long init​(NSCoder coder)
      Overrides:
      init in class UICommand
    • create

      protected static long create​(String title, UIImage image, Selector action, String input, UIKeyModifierFlags modifierFlags, NSObject propertyList)
    • create

      protected static long create​(String title, UIImage image, Selector action, String input, UIKeyModifierFlags modifierFlags, NSObject propertyList, NSArray<UICommandAlternate> alternates)
    • create

      protected static long create​(String input, UIKeyModifierFlags modifierFlags, Selector action)
    • create

      @Deprecated protected static long create​(String input, UIKeyModifierFlags modifierFlags, Selector action, String discoverabilityTitle)
      Deprecated.
      Deprecated in iOS 13.0. Use keyCommandWithInput:modifierFlags:action:
      Since:
      Available in iOS 9.0 and later.