Package com.vuzix.ultralite.utils.scroll
Interface AutoScroller.AutoScrollProgress
- Enclosing class:
- AutoScroller
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface class to receive a notification when the glasses have shown a new line.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onProgress
(int indexShown, int lastIndex, String visibleText) Callback method invoked each time a line is shown.
-
Method Details
-
onProgress
Callback method invoked each time a line is shown. This is called when the glasses first receive the new line of text, as it just starting to scroll upwards. It will require the configured duration to elapse before the line fully shows.- Parameters:
indexShown
- - The zero-based index of the line that is showing. Note: this includes blank lines at the conclusion of the show.lastIndex
- - Last index that will be sent when the show is complete and the screen is empty. When indexShown and lastIndex are identical, the show is over.visibleText
- - Text that will be visible when the current line finishes scrolling in. There are be additional lines of empty padding after the end of the provided text.
-