start

fun start(overlayCallback: SnapshotOverlayCallback? = null, resultCallback: SnapshotResultCallback)

Request a new snapshot. If there is a running snapshot request, it is cancelled and SnapshotResultCallback.onSnapshotResult for it will be called with snapshot=NULL.

Parameters

overlayCallback

optional callback that could be used to draw custom content directly over the snapshot image.

resultCallback

callback triggered when snapshot was obtained or if an error occurred.