Contents

shouldPlaySound

A Boolean value that indicates whether you must play a sound manually.

Declaration

var shouldPlaySound: Bool { get }

Discussion

This property is true only when both of the following conditions are true:

  1. A person performs an AirPod stem click.

  2. You disable the default capture sound.

If this property is false, calling play(_:) has no effect. Omitting the sound when expected can significantly impact the user experience.

See Also

Playing a sound