Skip to content

New method goToSlide() #166

@janheinrichmerker

Description

@janheinrichmerker

It would be useful to have a method to go to any slide.
Here's what such a function could look like:

/**
 * Tries to go to the given position and will stop when {@code canGoForward()} or {@code canGoBackward()} returns {@code false}.
 * @param position The position the pager should go to.
 * @return {@code true} if the pager was able to go the complete way to the given position, {@code false} otherwise.
 */
public boolean goToSlide(int position) {
    //...
}

Metadata

Metadata

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions