Created
August 21, 2017 22:06
-
-
Save nazmulidris/5f7fb1fdd8c3002ffe1f9755c73ae882 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface PlaybackInfoListener { | |
@IntDef({State.INVALID, State.PLAYING, State.PAUSED, State.RESET, State.COMPLETED}) | |
@Retention(RetentionPolicy.SOURCE) | |
@interface State { | |
int INVALID = -1; | |
int PLAYING = 0; | |
int PAUSED = 1; | |
int RESET = 2; | |
int COMPLETED = 3; | |
} | |
void onLogUpdated(String formattedMessage); | |
void onDurationChanged(int duration); | |
void onPositionChanged(int position); | |
void onStateChanged(@State int state); | |
void onPlaybackCompleted(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment