play(_:)
Plays the specified capture sound through AirPods.
Declaration
func play(_ sound: AVCaptureEventSound) -> BoolParameters
- sound:
The capture sound to play for this event.
Return Value
A Boolean value that indicates whether the system played the sound.
Discussion
This method has no effect if shouldPlaySound is false or if the event object’s lifetime exceeds 15 seconds.