captureRenderedView

@RequiresApi(value = 26)
suspend fun captureRenderedView(window: Window, view: View): Bitmap

Copies the rendered Compose host from the hardware-backed application window.