capture

fun capture(@NonNull bitmap: Bitmap, @NonNull callback: GsdkStreamView.CaptureCallback)

Captures latest rendered frame.

Frame is captured to the provided bitmap, then forwarded asynchronously to the provided callback.

Parameters

bitmap

bitmap to copy captured frame to; capture will be scaled tp match the width, height, and format of this bitmap

callback

callback notified when the capture is complete, either successfully, or because of any error

fun capture(@NonNull callback: GsdkStreamView.CaptureCallback)

Captures latest rendered frame.

Frame is captured to a bitmap with the same size as this view, configured as ARGB_8888, then forwarded asynchronously to the provided callback.

Parameters

callback

callback notified when the capture is complete, either successfully, or because of any error