//paparazzi/app.cash.paparazzi/Paparazzi
Paparazzi¶
[jvm]\ class Paparazzi@JvmOverloadsconstructor(environment: Environment = detectEnvironment(), deviceConfig: DeviceConfig = DeviceConfig.NEXUS_5, theme: String = "android:Theme.Material.NoActionBar.Fullscreen", renderingMode: SessionParams.RenderingMode = RenderingMode.NORMAL, appCompatEnabled: Boolean = true, maxPercentDifference: Double = 0.1, snapshotHandler: SnapshotHandler = determineHandler(maxPercentDifference), renderExtensions: Set<RenderExtension> = setOf(), supportsRtl: Boolean = false, showSystemUi: Boolean = false, validateAccessibility: Boolean = false, useDeviceResolution: Boolean = false) : TestRule
Constructors¶
Paparazzi | [jvm] @JvmOverloads constructor(environment: Environment = detectEnvironment(), deviceConfig: DeviceConfig = DeviceConfig.NEXUS_5, theme: String = "android:Theme.Material.NoActionBar.Fullscreen", renderingMode: SessionParams.RenderingMode = RenderingMode.NORMAL, appCompatEnabled: Boolean = true, maxPercentDifference: Double = 0.1, snapshotHandler: SnapshotHandler = determineHandler(maxPercentDifference), renderExtensions: Set<RenderExtension> = setOf(), supportsRtl: Boolean = false, showSystemUi: Boolean = false, validateAccessibility: Boolean = false, useDeviceResolution: Boolean = false) |
Properties¶
Name | Summary |
---|---|
context | [jvm] val context: Context |
layoutInflater | [jvm] val layoutInflater: LayoutInflater |
resources | [jvm] val resources: Resources |
Functions¶
Name | Summary |
---|---|
apply | [jvm] open override fun apply(base: Statement, description: Description): Statement |
close | [jvm] fun close() |
gif | [jvm] @JvmOverloads fun gif(view: View, name: String? = null, start: Long = 0, end: Long = 500, fps: Int = 30) |
inflate | [jvm] fun <V : View> inflate(@LayoutReslayoutId: Int): V |
prepare | [jvm] fun prepare(description: Description) |
snapshot | [jvm] fun snapshot(name: String? = null, composable: @Composable() -> Unit) @JvmOverloads fun snapshot(view: View, name: String? = null, offsetMillis: Long = 0) |
unsafeUpdateConfig | [jvm] fun unsafeUpdateConfig(deviceConfig: DeviceConfig? = null, theme: String? = null, renderingMode: SessionParams.RenderingMode? = null) |