Package apple.uikit.protocol
Interface UIMenuLeaf
-
- All Known Implementing Classes:
UIAction,UICommand,UIKeyCommand,UIWindowSceneActivationAction
public interface UIMenuLeafAPI-Since: 16.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longattributes()The element's attributes.@Nullable java.lang.StringdiscoverabilityTitle()Elaborated title used in keyboard shortcut overlay.@Nullable UIImageimage()Image that can appear next to this element.voidperformWithSenderTarget(@Nullable java.lang.Object sender, @Nullable java.lang.Object target)Performs the element’s primary action (i.e.@Nullable UIPopoverPresentationControllerSourceItempresentationSourceItem()Source item for subsequent presentations.@Nullable UIImageselectedImage()Image that can appear next to this action when the `state` is `UIMenuElementStateOn` API-Since: 17.0@Nullable java.lang.Objectsender()The object on behalf of which the element's primary action is being performed.voidsetAttributes(long value)The element's attributes.voidsetDiscoverabilityTitle(@Nullable java.lang.String value)Elaborated title used in keyboard shortcut overlay.voidsetImage(@Nullable UIImage value)Image that can appear next to this element.voidsetSelectedImage(@Nullable UIImage value)Image that can appear next to this action when the `state` is `UIMenuElementStateOn` API-Since: 17.0voidsetState(long value)The element's selection state.voidsetTitle(@NotNull java.lang.String value)Short display title.longstate()The element's selection state.@NotNull java.lang.Stringtitle()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
-
-