TouchBarButtonConstructorOptions

Properties

Link copied to clipboard
abstract var accessibilityLabel: String?

A short description of the button for use by screenreaders like VoiceOver.

Link copied to clipboard
abstract var backgroundColor: String?

Button background color in hex format, i.e #ABCDEF.

Link copied to clipboard
abstract var click: () -> Unit?

Function to call when the button is clicked.

Link copied to clipboard
abstract var enabled: Boolean?

Whether the button is in an enabled state. Default is true.

Link copied to clipboard
abstract var icon: Any?

Button icon.

Link copied to clipboard

Can be left, right or overlay. Defaults to overlay.

Link copied to clipboard
abstract var label: String?

Button text.