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()
Initiates request for screen capture and generates the next screenshot. Captures the current screen content and processes it for client usei32requestScreenShot2(com.amazon.kepler.buffer.IBufferGroup?buffer)
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 invalidSecurityError— if current process does not have screenshot privileges to use screenshot manager. This API needs client having privilegecom.amazon.graphics.privilege.screenshot

