PreviewParameter

annotation PreviewParameter


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

Summary

Public constructors

PreviewParameter(
    provider: KClass<PreviewParameterProvider<*>>,
    limit: Int
)

Public properties

Int

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

KClass<PreviewParameterProvider<*>>

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

Public constructors

PreviewParameter

PreviewParameter(
    provider: KClass<PreviewParameterProvider<*>>,
    limit: Int = Int.MAX_VALUE
)
Parameters
provider: KClass<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.

Public properties

limit

val limitInt

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

provider

val providerKClass<PreviewParameterProvider<*>>

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