Contents

positionDidChangeHandler

The block that the profile calls when the value of the switch changes.

Declaration

var positionDidChangeHandler: ((any GCPhysicalInputElement, any GCSwitchPositionInput, Int) -> Void)? { get set }

Discussion

The block’s parameters are:

element

The element whose position changes.

input

The input object that represents the position.

position

The new position of the element.

See Also

Getting the position