Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IScreenshotManager2

interface IScreenshotManager2
Extends IScreenshotManager IScreenshotManager provides function about screenshot, IWindow which set secure state true cannot be taken for screenshot. We use same object to implement both IDisplay and IScreenshotManager. Client can call tryQueryInterface to get screenshot manger from IDisplay.

Methods

requestScreenShot2()

i32 requestScreenShot2(com.amazon.kepler.buffer.IBufferGroup? buffer)
Initiates request for screen capture and generates the next screenshot. Captures the current screen content and processes it for client use

Parameters

buffer
com.amazon.kepler.buffer.IBufferGroup? — Optional The client-provided buffer where screenshot content will be stored. Buffer can be nullptr to have graphics allocate buffer.

Returns

i32 a unique request identifier that can be used to track the screenshot status through [IScreenShotListener#onScreenShot]

Throws

  • InvalidArgumentError — if any input argument is invalid
  • SecurityError — if current process does not have screenshot privileges to use screenshot manager. This API needs client having privilege com.amazon.graphics.privilege.screenshot

Last modified on October 29, 2026