createInstance

static OnboardingFragmentStandard createInstance(@NonNull() ArrayList<OnboardingPage> pages)

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

If you would like to prevent the appending of an empty page, you can use the createInstanceWithoutEmptyLastPage factory method.

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