Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Krivoblotsky committed May 14, 2015
1 parent 6f35017 commit 8444382
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,33 @@ Get and set volume:
### Dead-simple protocol:

```objc
/*
Will be called when track is over
/**
* Notifies the delegate about playing status changed
*
* @param player APAudioPlayer
*/
- (void)playerDidChangePlayingStatus:(APAudioPlayer *)player;

/**
* Will be called when track is over
*
* @param player APAudioPlayer
*/
- (void)playerDidFinishPlaying:(APAudioPlayer *)player;

/*
Will be called when interruption occured.
For ex. phone call.
Basically you should call - (void)pause in this case.
/**
* Will be called when interruption occured. For ex. phone call. Basically you should call - (void)pause in this case.
*
* @param player APAudioPlayer
*/

- (void)playerBeginInterruption:(APAudioPlayer *)player;

/*
Will be called when interruption ended.
For ex. phone call ended.
It's up to you to decide to call - (void)resume or not.
/**
* Will be called when interruption ended. For ex. phone call ended. It's up to you to decide to call - (void)resume or not.
*
* @param player APAudioPlayer
* @param should BOOL
*/

- (void)playerEndInterruption:(APAudioPlayer *)player shouldResume:(BOOL)should;

```
Expand Down

0 comments on commit 8444382

Please sign in to comment.