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 .
a new instance of the Fragment
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 .