Not available the setOnProgressListener #11
Comments
Hey @okabbas, thanks for your reply, let me please check if the sample activity still works. Whilst you may want to try to Clean+Build, if you haven't tried it yet, and check whether the issue persists or not. |
Hello . The sample project does not work for me.
my code
I checked your code and found that the setOnProgressListener interface did not exist at all. |
@okabbas woah, that's really odd, since the repository shows it's presence, give me just a bit more time, I need to update the dependencies, since I haven't touched this in a while |
@okabbas you're trying to use Java API here, you see, with kotlin you need to use properties like this: wave.onProgressListener = object : OnProgressListener {
override fun onProgressChanged(progress: Float, byUser: Boolean) {
TODO()
}
override fun onStartTracking(progress: Float) {
TODO()
}
override fun onStopTracking(progress: Float) {
TODO()
}
} |
@okabbas or there are some properties for your convenience, check those out: wave.onStopTracking = {
Log.e("wave", "Progress set: $it")
}
wave.onStartTracking = {
Log.e("wave", "Started tracking from: $it")
}
wave.onProgressChanged = {progress, byUser ->
Log.e("wave", "Progress set: $progress, and it's $byUser that user did this")
}
|
Oh my God :) It did |
@okabbas glad to help, and I'm closing this issue since the problem's solved. Gonna update the readme in a few minutes. |
Hi, thank you for your good library.
I'm having a problem, I added AudioWaveView and working properly, but unfortunately, setOnProgressListener is not found for me.
In fact, this interface does not exist. Please check and correct. Thank .
The text was updated successfully, but these errors were encountered: