ScreenCapture

interface ScreenCapture

Provides functionality to capture the contents of a surface view.

Inheritors

Functions

Link copied to clipboard
abstract fun capture(view: SurfaceView, fileName: String? = null, onSuccess: (Uri) -> Unit)

Captures the current frame of the specified SurfaceView and saves it to storage.

Link copied to clipboard
abstract fun captureAndShare(view: SurfaceView, text: String? = null, onSuccess: (Uri) -> Unit)

Captures the current frame of the specified SurfaceView and launches a system share dialog.

Link copied to clipboard
abstract fun stopCapture()

Cancels any ongoing screen capture operation.