Most visited

Recently visited

ViroMediaRecorder.ScreenshotFinishListener

public static interface ViroMediaRecorder.ScreenshotFinishListener

com.viro.core.ViroMediaRecorder.ScreenshotFinishListener


Listener for responding to screenshot capture success and errors.

Summary

Public methods

abstract void onError(ViroMediaRecorder.Error errorCode)

Callback that is triggered when screenshot capture encounters an error.

abstract void onSuccess(Bitmap bitmap, String filePath)

Callback that is triggered when screenshot capture is successful.

Public methods

onError

void onError (ViroMediaRecorder.Error errorCode)

Callback that is triggered when screenshot capture encounters an error.

Parameters
errorCode ViroMediaRecorder.Error: Error code.

onSuccess

void onSuccess (Bitmap bitmap, 
                String filePath)

Callback that is triggered when screenshot capture is successful. The developer is responsible for managing the Bitmap (ie. calling recycle() when necessary)

Parameters
bitmap Bitmap: The bitmap containing the captured screenshot.

filePath String: The absolute file path of the recorded / saved file.

Hooray!