public final class Falcon
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Falcon.UnableToTakeScreenshotException
Custom exception thrown if there is some exception thrown during
screenshot capturing to enable better client code exception handling.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
takeScreenshot(android.app.Activity activity,
java.io.File toFile)
Takes screenshot of provided activity and saves it to provided file.
|
static android.graphics.Bitmap |
takeScreenshotBitmap(android.app.Activity activity)
Takes screenshot of provided activity and puts it into bitmap.
|
public static void takeScreenshot(android.app.Activity activity,
java.io.File toFile)
activity - Activity of which the screenshot will be taken.toFile - File where the screenshot will be saved.
If there is some content it will be overwrittenFalcon.UnableToTakeScreenshotException - When there is unexpected error during taking screenshotpublic static android.graphics.Bitmap takeScreenshotBitmap(android.app.Activity activity)
activity - Activity of which the screenshot will be taken.Falcon.UnableToTakeScreenshotException - When there is unexpected error during taking screenshot