Skip to content

Instantly share code, notes, and snippets.

@nazmulidris
Created August 21, 2017 22:06
Show Gist options
  • Save nazmulidris/5f7fb1fdd8c3002ffe1f9755c73ae882 to your computer and use it in GitHub Desktop.
Save nazmulidris/5f7fb1fdd8c3002ffe1f9755c73ae882 to your computer and use it in GitHub Desktop.
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