Enumeration

WKMenuItemIcon

Template images that you can use for menus.

Declaration

enum WKMenuItemIcon : Int

Overview

Use these constants with the addMenuItem(with:title:action:) method to configure actions for your interface controller’s menu.

Topics

Constants

case accept

The icon indicating an action to accept an event or item.

case add

The icon indicating an action for adding an item.

case block

The icon indicating an action to block or prevent something from happening.

case decline

The icon indicating an action to decline or cancel an event.

case info

The icon indicating an action to retrieve more information.

case maybe

The icon indicating an answer of maybe for an action.

case more

The icon indicating that more actions or options are available.

case mute

The icon indicating an action to mute the sound.

case pause

The icon indicating an action to pause playback.

case play

The icon indicating an action to play some content.

case `repeat`

The icon indicating that played content should repeat in a loop.

case resume

The icon indicating an action to resume playing some content.

case share

The icon indicating an action to share content.

case shuffle

The icon indicating an action to shuffle content.

case speaker

The icon indicating audio output.

case trash

The icon indicating an action to delete some content.

See Also

Configuring the Context Menu

func addMenuItem(with: WKMenuItemIcon, title: String, action: Selector)

Adds an action to the context menu using a system-provided icon.

func addMenuItem(withImageNamed: String, title: String, action: Selector)

Adds an action to the context menu using an existing image resource in your Watch app bundle.

func addMenuItem(with: UIImage, title: String, action: Selector)

Adds an action to the context menu by using an image provided by your WatchKit extension.

func clearAllMenuItems()

Removes all programmatically added actions from the context menu.