Package apple.avfoundation.protocol
Interface AVAudioPlayerDelegate
-
public interface AVAudioPlayerDelegateA protocol for delegates of AVAudioPlayer
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidaudioPlayerBeginInterruption(AVAudioPlayer player)Deprecated.default voidaudioPlayerDecodeErrorDidOccurError(AVAudioPlayer player, NSError error)if an error occurs while decoding it will be reported to the delegate.default voidaudioPlayerDidFinishPlayingSuccessfully(AVAudioPlayer player, boolean flag)audioPlayerDidFinishPlaying:successfully: is called when a sound has finished playing.default voidaudioPlayerEndInterruption(AVAudioPlayer player)Deprecated.default voidaudioPlayerEndInterruptionWithFlags(AVAudioPlayer player, long flags)Deprecated.default voidaudioPlayerEndInterruptionWithOptions(AVAudioPlayer player, long flags)Deprecated.
-
-
-
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.
-
-