{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PreviewParameterProvider

interface PreviewParameterProvider<T : Any?>

Known direct subclasses

Interface to be implemented by any provider of values that you want to be injected as @Preview parameters. This allows providing sample information for previews.

Summary

Public properties

open Int

Returns the number of elements in the values.

Sequence<T>

Sequence of values of type T to be passed as @Preview parameter.

Public properties

count

open val countInt

Returns the number of elements in the values.

values

val valuesSequence<T>

Sequence of values of type T to be passed as @Preview parameter.