Builder

class Builder

Builder for QueryPreviewClient.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Builds a new instance of QueryPreviewClient with the registered preview states.

Link copied to clipboard
fun <T, S> on(id: InfiniteQueryId<T, S>, snapshot: () -> QueryState<QueryChunks<T, S>>)

Registers a preview state for the infinite query with the specified ID.

fun <T, S> on(testTag: InfiniteQueryTestTag<T, S>, snapshot: () -> QueryState<QueryChunks<T, S>>)

Registers a preview state for the infinite query with the specified test tag.

fun <T> on(id: QueryId<T>, snapshot: () -> QueryState<T>)

Registers a preview state for the query with the specified ID.

fun <T> on(testTag: QueryTestTag<T>, snapshot: () -> QueryState<T>)

Registers a preview state for the query with the specified test tag.