Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,5 @@ lint/tmp/
*.hprof

# Signing
keystore.properties
keystore.properties
.idea/
12 changes: 6 additions & 6 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ext.versions = [
kotlin : '1.5.21',
core_ktx : '1.6.0',
appcompat : '1.3.1',
constraintlayout : '2.1.0',
material : '1.4.0',
kotlin : '1.4.32',
core_ktx : '1.3.2',
appcompat : '1.2.0',
constraintlayout : '2.0.4',
material : '1.3.0',
lifecycle : '2.3.0',
exoplayer : '2.15.0'
exoplayer : '2.15.1'
]

ext.build = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,37 +1,36 @@
package com.github.vkay94.dtpv;

public interface PlayerDoubleTapListener {
package com.github.vkay94.dtpv

interface PlayerDoubleTapListener {
/**
* Called when double tapping starts, after double tap gesture
*
* @param posX x tap position on the root view
* @param posY y tap position on the root view
*/
default void onDoubleTapStarted(float posX, float posY) { }
fun onDoubleTapStarted(posX: Float, posY: Float) {}

/**
* Called for each ongoing tap (also single tap) (MotionEvent#ACTION_DOWN)
* when double tap started and still in double tap mode defined
* by {@link DoubleTapPlayerView#getDoubleTapDelay()}
* by [DoubleTapPlayerView.getDoubleTapDelay]
*
* @param posX x tap position on the root view
* @param posY y tap position on the root view
*/
default void onDoubleTapProgressDown(float posX, float posY) { }
fun onDoubleTapProgressDown(posX: Float, posY: Float) {}

/**
* Called for each ongoing tap (also single tap) (MotionEvent#ACTION_UP}
* when double tap started and still in double tap mode defined
* by {@link DoubleTapPlayerView#getDoubleTapDelay()}
* by [DoubleTapPlayerView.getDoubleTapDelay]
*
* @param posX x tap position on the root view
* @param posY y tap position on the root view
*/
default void onDoubleTapProgressUp(float posX, float posY) { }
fun onDoubleTapProgressUp(posX: Float, posY: Float) {}

/**
* Called when {@link DoubleTapPlayerView#getDoubleTapDelay()} is over
* Called when [DoubleTapPlayerView.getDoubleTapDelay] is over
*/
default void onDoubleTapFinished() { }
fun onDoubleTapFinished() {}
}