completionHandler
A closure that the playback controller executes when it reaches the end of the audio stream.
Declaration
@MainActor @preconcurrency var completionHandler: (() -> Void)? { get set }Discussion
The controller doesn’t call the closure if you manually stop the audio by calling the stop() or the pause() method.