capture
Captures the current frame of the specified SurfaceView and saves it to storage.
Parameters
view
The SurfaceView to capture.
file Name
An optional name for the saved file. If null, a default name is generated.
on Success
Callback invoked with the Uri of the saved image upon successful completion.