Interface AVAudioPlayerDelegate


  • public interface AVAudioPlayerDelegate
    A protocol for delegates of AVAudioPlayer
    • Method Detail

      • audioPlayerBeginInterruption

        @Deprecated
        default void audioPlayerBeginInterruption​(AVAudioPlayer player)
        Deprecated.
        audioPlayerBeginInterruption: is called when the audio session has been interrupted while the player was playing. The player will have been paused.
      • audioPlayerDecodeErrorDidOccurError

        default void audioPlayerDecodeErrorDidOccurError​(AVAudioPlayer player,
                                                         NSError error)
        if an error occurs while decoding it will be reported to the delegate.
      • audioPlayerDidFinishPlayingSuccessfully

        default void audioPlayerDidFinishPlayingSuccessfully​(AVAudioPlayer player,
                                                             boolean flag)
        audioPlayerDidFinishPlaying:successfully: is called when a sound has finished playing. This method is NOT called if the player is stopped due to an interruption.
      • audioPlayerEndInterruption

        @Deprecated
        default void audioPlayerEndInterruption​(AVAudioPlayer player)
        Deprecated.
        audioPlayerEndInterruption: is called when the preferred method, audioPlayerEndInterruption:withFlags:, is not implemented.
      • audioPlayerEndInterruptionWithFlags

        @Deprecated
        default void audioPlayerEndInterruptionWithFlags​(AVAudioPlayer player,
                                                         long flags)
        Deprecated.
      • audioPlayerEndInterruptionWithOptions

        @Deprecated
        default void audioPlayerEndInterruptionWithOptions​(AVAudioPlayer player,
                                                           long flags)
        Deprecated.
        audioPlayerEndInterruption:withOptions: is called when the audio session interruption has ended and this player had been interrupted while playing. Currently the only flag is AVAudioSessionInterruptionFlags_ShouldResume.