createInstance

Factory method for creating a new instance of the Fragment using the provided list of onboarding 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 OnboardingFragment.

Return

a new instance of the Fragment

Parameters

pages

the pages to be shown