createInstanceWithoutEmptyLastPage

Factory method for creating a new instance of the Fragment using the provided list of onboarding pages.

This method prevents the appending of an empty page to your pages.

If you don't need a custom number of pages and wish to use the default behaviour, you can use the default constructor of OnboardingFragmentCompat.

Return

a new instance of the Fragment

Parameters

pages

the pages to be shown

Factory method for creating a new instance of the Fragment without appending an empty page to the default pages.

If you wish to use the default behaviour, you can use the default constructor of OnboardingFragmentCompat.

Return

a new instance of the Fragment