Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable move to previous slide #84

Open
Mauker1 opened this issue Feb 13, 2017 · 1 comment
Open

Disable move to previous slide #84

Mauker1 opened this issue Feb 13, 2017 · 1 comment

Comments

@Mauker1
Copy link

Mauker1 commented Feb 13, 2017

Sometimes it might be useful to disable the "back" function on the intro screen, so once the user have already finished with one slide he won't be able to come back.

As a suggestion, this could be done like on the original lib:

/* Add a navigation policy to define when users can go forward/backward */
        setNavigationPolicy(new NavigationPolicy() {
            @Override
            public boolean canGoForward(int position) {
                return true;
            }

            @Override
            public boolean canGoBackward(int position) {
                return false;
            }
        });
@bezmian
Copy link
Contributor

bezmian commented Feb 13, 2017

It sounds like a good idea. Maybe in future I will implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants