# Print output for @column tags ?> AccessibilityService.ScreenshotResult - Android SDK | Android Developers

Most visited


Recently visited


AccessibilityService.ScreenshotResult

public static final class AccessibilityService.ScreenshotResult
extends Object

java.lang.Object
   ↳ android.accessibilityservice.AccessibilityService.ScreenshotResult


Can be used to construct a bitmap of the screenshot or any other operations for AccessibilityService#takeScreenshot API.

Summary


Public methods

ColorSpace getColorSpace()

Gets the ColorSpace identifying a specific organization of colors of the screenshot.

HardwareBuffer getHardwareBuffer()

Gets the HardwareBuffer representing a memory buffer of the screenshot.

long getTimestamp()

Gets the timestamp of taking the screenshot.

Inherited methods

Public methods


getColorSpace

public ColorSpace getColorSpace ()

Gets the ColorSpace identifying a specific organization of colors of the screenshot.

Returns
ColorSpace the color space This value cannot be null.

getHardwareBuffer

public HardwareBuffer getHardwareBuffer ()

Gets the HardwareBuffer representing a memory buffer of the screenshot.

Note: The application should call HardwareBuffer#close() when the buffer is no longer needed to free the underlying resources.

Returns
HardwareBuffer the hardware buffer This value cannot be null.

getTimestamp

public long getTimestamp ()

Gets the timestamp of taking the screenshot.

Returns
long milliseconds of non-sleep uptime before screenshot since boot and it's from SystemClock#uptimeMillis()

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.