Interface TimeBar.OnScrubListener

  • Enclosing interface:
    TimeBar

    public static interface TimeBar.OnScrubListener
    Listener for scrubbing events.
    • Method Detail

      • onScrubStart

        void onScrubStart​(TimeBar timeBar,
                          long position)
        Called when the user starts moving the scrubber.
        Parameters:
        timeBar - The time bar.
        position - The scrub position in milliseconds.
      • onScrubMove

        void onScrubMove​(TimeBar timeBar,
                         long position)
        Called when the user moves the scrubber.
        Parameters:
        timeBar - The time bar.
        position - The scrub position in milliseconds.
      • onScrubStop

        void onScrubStop​(TimeBar timeBar,
                         long position,
                         boolean canceled)
        Called when the user stops moving the scrubber.
        Parameters:
        timeBar - The time bar.
        position - The scrub position in milliseconds.
        canceled - Whether scrubbing was canceled.