Added Android code
[wl-app.git] / Android / app / src / main / java / com / moiseum / wolnelektury / view / player / PlayerView.java
diff --git a/Android/app/src/main/java/com/moiseum/wolnelektury/view/player/PlayerView.java b/Android/app/src/main/java/com/moiseum/wolnelektury/view/player/PlayerView.java
new file mode 100644 (file)
index 0000000..03f6a6d
--- /dev/null
@@ -0,0 +1,17 @@
+package com.moiseum.wolnelektury.view.player;
+
+/**
+ * Created by Piotr Ostrowski on 22.05.2018.
+ */
+interface PlayerView {
+
+       void setTrackDuration(int trackDuration, String totalProgress);
+
+       void setTrackPosition(int position, String currentProgress);
+
+       void setTrackTexts(String title, int chapter);
+
+       void setPlayButtonState(boolean playing);
+
+       void onPlayerError();
+}