UIMenu extension type
UIMenu
- on
-
- ObjCObject
- Implemented types
- Available extensions
Constructors
- UIMenu()
-
Returns a new instance of UIMenu constructed with the default
newmethod. - UIMenu.as(ObjCObject other)
-
Constructs a UIMenu that points to the same underlying object as
other. -
UIMenu.fromPointer(Pointer<
ObjCObjectImpl> other, {bool retain = false, bool release = false}) - Constructs a UIMenu that wraps the given raw object pointer.
Properties
- children → NSArray
-
Available on UIMenu, provided by the UIMenu$Methods extension
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.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → NSString
-
Available on UIMenu, provided by the UIMenu$Methods extension
Unique identifier.no setter - image → UIImage?
-
Available on UIMenuElement, provided by the UIMenuElement$Methods extension
Image to be displayed alongside the element's title.no setter - object$ → ObjCObject
-
final
- options → int
-
Available on UIMenu, provided by the UIMenu$Methods extension
Options.no setter - ref → ObjCObjectRef
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedElements → NSArray
-
Available on UIMenu, provided by the UIMenu$Methods extension
The element(s) in the menu and sub-menus that have an "on" menu item state.no setter - subtitle ↔ NSString?
-
Available on UIMenuElement, provided by the UIMenuElement$Methods extension
The element's subtitle.getter/setter pair - title → NSString
-
Available on UIMenuElement, provided by the UIMenuElement$Methods extension
The element's title.no setter
Methods
-
encodeWithCoder(
NSCoder coder) → void -
Available on UIMenuElement, provided by the UIMenuElement$Methods extension
encodeWithCoder: -
init(
) → UIMenu -
Available on UIMenu, provided by the UIMenu$Methods extension
init -
init(
) → UIMenuElement -
Available on UIMenuElement, provided by the UIMenuElement$Methods extension
init -
initWithCoder(
NSCoder coder) → UIMenu? -
Available on UIMenu, provided by the UIMenu$Methods extension
initWithCoder: -
initWithCoder(
NSCoder coder) → UIMenuElement? -
Available on UIMenuElement, provided by the UIMenuElement$Methods extension
initWithCoder: -
Available on UIMenu, provided by the UIMenu$Methods extension
! @abstract Copies this menu and replaces its children. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
alloc(
) → UIMenu - alloc
-
allocWithZone(
Pointer< NSZone> zone) → UIMenu - allocWithZone:
-
getSupportsSecureCoding(
) → bool - supportsSecureCoding
-
isA(
ObjCObject obj) → bool -
Returns whether
objis an instance of UIMenu. - ! @abstract Creates a UIMenu with an empty title, nil image, automatically generated identifier, and default options.
- ! @abstract Creates a UIMenu with the given arguments.
- ! @abstract Creates a UIMenu with the given arguments.
-
new$(
) → UIMenu - new