compositeProvider
fun <T1 : Any, T2 : Any> compositeProvider(kClass1: KClass<out PreviewParameterProvider<T1>>, kClass2: KClass<out PreviewParameterProvider<T2>>): PreviewParameterProvider<Pair<T1, T2>>
Creates a PreviewParameterProvider based on the classes of two existing providers.
You can create your own easily with Kotlin delegation:
class ExampleProvider : PreviewParameterProvider<Pair<Type1, Type2>>
by compositeProvider(Type1ParameterProvider::class, Type2ParameterProvider::class)
Content copied to clipboard