capture

@JvmOverloads()
fun X5BridgeWebView.capture(elementQuery: String = "body", option: String = "{}", callback: (imgData: String?) -> Unit)

html2canvas

Generate screenshots by specifying elementQuery

Parameters

elementQuery
option
  • default: "{}". see also html2canvas

    • allowTaint: default false

      • Whether to allow cross-origin images to taint the canvas

    • useCORS: default false

      • Whether to attempt to load images from a server using CORS