//paparazzi/app.cash.paparazzi/PaparazziSdk
PaparazziSdk¶
[jvm]\ class PaparazziSdk@JvmOverloadsconstructor(environment: Environment = detectEnvironment(), deviceConfig: DeviceConfig = DeviceConfig.NEXUS_5, theme: String = "android:Theme.Material.NoActionBar.Fullscreen", renderingMode: SessionParams.RenderingMode = RenderingMode.NORMAL, appCompatEnabled: Boolean = true, renderExtensions: Set<RenderExtension> = setOf(), supportsRtl: Boolean = false, showSystemUi: Boolean = false, validateAccessibility: Boolean = false, useDeviceResolution: Boolean = false, onNewFrame: (BufferedImage) -> Unit)
Constructors¶
PaparazziSdk | [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, renderExtensions: Set<RenderExtension> = setOf(), supportsRtl: Boolean = false, showSystemUi: Boolean = false, validateAccessibility: Boolean = false, useDeviceResolution: Boolean = false, onNewFrame: (BufferedImage) -> Unit) |
Properties¶
Name | Summary |
---|---|
context | [jvm] val context: Context |
layoutInflater | [jvm] val layoutInflater: LayoutInflater |
resources | [jvm] val resources: Resources |
Functions¶
Name | Summary |
---|---|
gif | [jvm] @JvmOverloads fun gif(view: View, start: Long = 0, end: Long = 500, fps: Int = 30) |
inflate | [jvm] fun <V : View> inflate(@LayoutReslayoutId: Int): V |
prepare | [jvm] fun prepare() |
setup | [jvm] fun setup() |
snapshot | [jvm] fun snapshot(composable: @Composable() -> Unit) @JvmOverloads fun snapshot(view: View, offsetMillis: Long = 0) |
teardown | [jvm] fun teardown() |
unsafeUpdateConfig | [jvm] fun unsafeUpdateConfig(deviceConfig: DeviceConfig? = null, theme: String? = null, renderingMode: SessionParams.RenderingMode? = null) |