Factory

object Factory(source)

Functions

Link copied to clipboard
fun build(type: PageType): Page

Build a page with a PageType enum.

fun build(type: String): Page

Build a page with just a type.

Link copied to clipboard
fun buildWithId(type: PageType, pageId: String, value: String? = null): Page

Build a page with a PageType enum and page ID.

fun buildWithId(type: String, pageId: String, value: String? = null): Page

Build a page with a type and page ID.

Link copied to clipboard
fun buildWithValues(type: PageType, values: List<String>, pageId: String? = null): Page

Build a page with a PageType enum and multiple values.

fun buildWithValues(type: String, values: List<String>, pageId: String? = null): Page

Build a page with multiple values (e.g., category hierarchy).

Link copied to clipboard