cortinico/slidetoact

onSlideComplete issue

iraunit opened this issue · 1 comments

when calling onSlideComplete it should do some task but it is not.

code:-
stopAlarmButton.onSlideCompleteListener?.onSlideComplete(SlideToActView(this,))
image
image

How to use this to do something when sliding is completed?

stopAlarmButton.onSlideCompleteListener?.onSlideComplete(SlideToActView(this,))

You're calling this wrong. You can find an example on how to call this here:

slide.setOnSlideCompleteListener(new SlideToActView.OnSlideCompleteListener() {
@Override
public void onSlideComplete(@NonNull SlideToActView view) {
log.append("\n" + getTime() + " onSlideComplete");
}
});