capture

Captures a view tree that contains a given View and returns the obtained Bitmap.

Parameters

callback

invoked when a screenshot of the view tree is ready