iZettle / android-html2bitmap

Generates a bitmap from html by rendering the content inside an off screen webview
MIT License
57 stars 20 forks source link

Make webView wait for all resources load before taking screenshot #7

Closed erikeelde closed 6 years ago

erikeelde commented 6 years ago

A tentative solution as a base for discussion. Please don't merge without prior discussion.

Webview will wait for remote resources to be loaded. Introduces a method to do cleanup / stop current bitmap "job" - automatically called by getBitmap(...)

erikeelde commented 6 years ago

We've had a discussion and have made a few fixes. This is ready for additional testing.