UIMenu class
UIMenu
- Inheritance
-
- Object
- UIMenuElement
- UIMenu
- Available extensions
Constructors
- UIMenu.new()
-
Returns a new instance of UIMenu constructed with the default
new
method.factory - UIMenu.castFrom(ObjCObjectBase other)
-
Constructs a UIMenu that points to the same underlying object as
other
. -
UIMenu.castFromPointer(Pointer<
ObjCObject> 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 - options → UIMenuOptions
-
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
override
-
allocWithZone(
Pointer< NSZone> zone) → UIMenu -
allocWithZone:
override
-
getSupportsSecureCoding(
) → bool -
supportsSecureCoding
override
-
isInstance(
ObjCObjectBase obj) → bool -
Returns whether
obj
is an instance of UIMenu.override - ! @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
override