captureScreenshot

Capture the screenshot image for the currently rendered screen of the application.

This is an optional override to support specialized screen capture from plugins, if needed. However, normally the default screenshot capturing the root view of the application will suffice, in which case this function can be omitted.

Return

: The screenshot data for the current screen, or null if not available. If null, the default screenshot of the current root view of the application will be used.