Contents

audioPlayerDidFinishPlaying(_:successfully:)

Tells the delegate when the audio finishes playing.

Declaration

optional func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer, successfully flag: Bool)

Parameters

  • player:

    The audio player that finishes playing.

  • flag:

    A Boolean value that indicates whether the audio finishes playing successfully.

Discussion

The system doesn’t call this method on an audio interruption.