getScreenBase64

actual fun getScreenBase64(): String

Screenshot strategy:

  1. PixelCopy on Activity window (API 24+) — captures window surface including WebView

  2. UiAutomation.takeScreenshot() (with retries) — full display, may be blank over WebView

  3. Last resort: draw decorView to Bitmap (WebView area often blank)

expect fun getScreenBase64(): String
actual fun getScreenBase64(): String
actual fun getScreenBase64(): String