Skip to main content

Take a screenshot at runtime

Take a screenshot at runtime

Allows you to take a screenshot of the device's current foreground state.

To get started using it, you must use KmpScreenshot.

To take a screenshot of the device, please use the following:


_6
KmpScreenshot.getScreenshot({
_6
val response = it // returns the filepath of the screenshot photo generated & where it is stored
_6
_6
},
_6
shareImage = false // whether a share popup is rendered to allow users to share the generated screenshot
_6
)

Any Setup Required?

None