mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Refactor project structure
This commit is contained in:
parent
a26c127356
commit
2d886b67ff
46 changed files with 158 additions and 361 deletions
|
|
@ -0,0 +1,41 @@
|
|||
package com.cappielloantonio.play.interfaces;
|
||||
|
||||
import com.cappielloantonio.play.model.Song;
|
||||
|
||||
public interface Playback {
|
||||
void setDataSource(Song song);
|
||||
|
||||
void queueDataSource(Song song);
|
||||
|
||||
void setCallbacks(PlaybackCallbacks callbacks);
|
||||
|
||||
boolean isReady();
|
||||
|
||||
boolean isPlaying();
|
||||
|
||||
boolean isLoading();
|
||||
|
||||
void start();
|
||||
|
||||
void pause();
|
||||
|
||||
void stop();
|
||||
|
||||
int getProgress();
|
||||
|
||||
int getDuration();
|
||||
|
||||
void setProgress(int progress);
|
||||
|
||||
void setVolume(int volume);
|
||||
|
||||
int getVolume();
|
||||
|
||||
interface PlaybackCallbacks {
|
||||
void onStateChanged(int state);
|
||||
|
||||
void onReadyChanged(boolean ready, int reason);
|
||||
|
||||
void onTrackChanged(int reason);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue