Google is committed to advancing racial equity for Black communities. See how.

PreviewParameter

annotation class PreviewParameter
androidx.ui.tooling.preview.PreviewParameter

PreviewParameter can be applied to any parameter of a @Preview.

Summary

Public constructors
<init>(provider: KClass<out PreviewParameterProvider<*>>, limit: Int = Int.MAX_VALUE)

PreviewParameter can be applied to any parameter of a @Preview.

Properties
Int

Max number of values from provider to inject to this parameter.

KClass<out PreviewParameterProvider<*>>

A PreviewParameterProvider class to use to inject values to the annotated parameter.

Public constructors

<init>

PreviewParameter(
    provider: KClass<out PreviewParameterProvider<*>>,
    limit: Int = Int.MAX_VALUE)

PreviewParameter can be applied to any parameter of a @Preview.

Parameters
provider: KClass<out PreviewParameterProvider<*>> A PreviewParameterProvider class to use to inject values to the annotated parameter.
limit: Int = Int.MAX_VALUE Max number of values from provider to inject to this parameter.

Properties

limit

val limit: Int

Max number of values from provider to inject to this parameter.

provider

val provider: KClass<out PreviewParameterProvider<*>>

A PreviewParameterProvider class to use to inject values to the annotated parameter.