Update Android functionality to provide the "captureScreenshot". This will capture the entire screen and all the views currently displayed. This performs a native screen capture so a ref tag is not required.
As per owner's suggestion:
Firstly get all children recursively;
Then check if each child is an instance of TextureView with instanceof;
Make sure child knows it's not opaque and get its bitmap into a buffer;
Draw said bitmap into the current canvas.
This assumes that these TextureView elements are ordered in the tree.
Revert "Fix the Android implementation to return a file path, not an Uri path"
I was actually wrong on this.
Fixes #15
my problem i was having is you can't do new File(uri) but it's normal, it's not a file path, it's a Uri,
if you are sure you have a file uri, you can do new File(Uri.parse(uri).getPath()) but I guess best is to get a input stream from the Uri or keep using Uri..
This reverts commit a85cf9629a.