-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add playback functionality to GPX layers
Fixes #1217
- Loading branch information
1 parent
2cf77a4
commit 43fadd0
Showing
7 changed files
with
218 additions
and
13 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package de.blau.android.util; | ||
|
||
import java.util.concurrent.ExecutorService; | ||
|
||
import android.os.Handler; | ||
import androidx.annotation.NonNull; | ||
|
||
public abstract class PlaybackTask<I, P, O> extends ExecutorTask<I, P, O> { | ||
/** | ||
* Create a new instance | ||
* | ||
* @param executorService the ExecutorService to use | ||
* @param handler the Handler to use | ||
*/ | ||
protected PlaybackTask(@NonNull ExecutorService executorService, @NonNull Handler handler) { | ||
super(executorService, handler); | ||
} | ||
|
||
/** | ||
* Pause playback | ||
*/ | ||
public abstract void pause(); | ||
|
||
/** | ||
* Resume playback | ||
*/ | ||
public abstract void resume(); | ||
|
||
/** | ||
* Check if playback is paused | ||
* | ||
* @return true if playback is paused | ||
*/ | ||
public abstract boolean isPaused(); | ||
} |
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