Package 

Interface ScreenshotRecorderCallback


  • 
    public interface ScreenshotRecorderCallback
    
                        

    A callback to be invoked when a new screenshot available. Normally, only one of the onScreenshotRecorded method overloads should be called by a single recorder, however, it will still work of both are used at the same time.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onScreenshotRecorded(Bitmap bitmap) Called whenever a new frame screenshot is available.
      abstract Unit onScreenshotRecorded(File screenshot, Long frameTimestamp) Called whenever a new frame screenshot is available.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onScreenshotRecorded

         abstract Unit onScreenshotRecorded(File screenshot, Long frameTimestamp)

        Called whenever a new frame screenshot is available.

        Parameters:
        screenshot - file containing the frame screenshot
        frameTimestamp - the timestamp when the frame screenshot was taken