Contents

maxAcceleratorLevel

An integer value indicating the maximum pressure level for a button of type Nsmultilevelacceleratorbutton.

Declaration

var maxAcceleratorLevel: Int { get set }

Discussion

A multilevel accelerator button is a variation of a standard accelerator button that allows for a configurable number of stepped pressure levels in a system that supports pressure-sensitivity, such as the Force Touch trackpad. As each level is reached, the user receives light tactile feedback, and an action is sent.

You configure the number of pressure levels for a multilevel accelerator button by adjusting the value of maxAcceleratorLevel. For other types of buttons, this property value defaults to 1. For multilevel accelerator buttons, this property value defaults to 2, and may be set to a value between 1 and 5.

The behavior of a multilevel accelerator button is reliant on a system that supports pressure sensitivity. On a system that doesn’t support pressure sensitivity, a multilevel accelerator button always has a value of 1 when the user clicks it.

See Also

Configuring buttons