Interface UIMenuLeaf

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long attributes()
      The element's attributes.
      @Nullable java.lang.String discoverabilityTitle()
      Elaborated title used in keyboard shortcut overlay.
      @Nullable UIImage image()
      Image that can appear next to this element.
      void performWithSenderTarget​(@Nullable java.lang.Object sender, @Nullable java.lang.Object target)
      Performs the element’s primary action (i.e.
      @Nullable UIPopoverPresentationControllerSourceItem presentationSourceItem()
      Source item for subsequent presentations.
      @Nullable UIImage selectedImage()
      Image that can appear next to this action when the `state` is `UIMenuElementStateOn` API-Since: 17.0
      @Nullable java.lang.Object sender()
      The object on behalf of which the element's primary action is being performed.
      void setAttributes​(long value)
      The element's attributes.
      void setDiscoverabilityTitle​(@Nullable java.lang.String value)
      Elaborated title used in keyboard shortcut overlay.
      void setImage​(@Nullable UIImage value)
      Image that can appear next to this element.
      void setSelectedImage​(@Nullable UIImage value)
      Image that can appear next to this action when the `state` is `UIMenuElementStateOn` API-Since: 17.0
      void setState​(long value)
      The element's selection state.
      void setTitle​(@NotNull java.lang.String value)
      Short display title.
      long state()
      The element's selection state.
      @NotNull java.lang.String title()
      Short display title.
    • Method Detail

      • attributes

        long attributes()
        The element's attributes.
      • discoverabilityTitle

        @Nullable
        @Nullable java.lang.String discoverabilityTitle()
        Elaborated title used in keyboard shortcut overlay.
      • image

        @Nullable
        @Nullable UIImage image()
        Image that can appear next to this element.
      • performWithSenderTarget

        void performWithSenderTarget​(@Nullable
                                     @Nullable java.lang.Object sender,
                                     @Nullable
                                     @Nullable java.lang.Object target)
        Performs the element’s primary action (i.e. it's handler or selector).
      • presentationSourceItem

        @Nullable
        @Nullable UIPopoverPresentationControllerSourceItem presentationSourceItem()
        Source item for subsequent presentations. For example, an element displayed in a menu attached to a [@c] UIButton may return the button so that a popover may be presented from it when the element is tapped. If available, this property is only populated during the execution of the element's action (i.e. its handler or selector). API-Since: 16.0
      • sender

        @Nullable
        @Nullable java.lang.Object sender()
        The object on behalf of which the element's primary action is being performed. This property is only populated during the execution of the element's primary action (i.e. its handler or selector) if available.
      • setAttributes

        void setAttributes​(long value)
        The element's attributes.
      • setDiscoverabilityTitle

        void setDiscoverabilityTitle​(@Nullable
                                     @Nullable java.lang.String value)
        Elaborated title used in keyboard shortcut overlay.
      • setImage

        void setImage​(@Nullable
                      @Nullable UIImage value)
        Image that can appear next to this element.
      • setState

        void setState​(long value)
        The element's selection state.
      • setTitle

        void setTitle​(@NotNull
                      @NotNull java.lang.String value)
        Short display title.
      • state

        long state()
        The element's selection state.
      • title

        @NotNull
        @NotNull java.lang.String title()
        Short display title.
      • selectedImage

        @Nullable
        @Nullable UIImage selectedImage()
        Image that can appear next to this action when the `state` is `UIMenuElementStateOn` API-Since: 17.0
      • setSelectedImage

        void setSelectedImage​(@Nullable
                              @Nullable UIImage value)
        Image that can appear next to this action when the `state` is `UIMenuElementStateOn` API-Since: 17.0