newInstance

public final CarouselPageFragment newInstance(Integer imageRes, String header, String description)

Creates a new instance of the CarouselPageFragment with the provided arguments.

Return

A new instance of CarouselPageFragment with the specified arguments.

Parameters

imageRes

The image resource ID for the carousel image.

header

The header text for the carousel page.

description

The description text for the carousel page.