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

Struct PresentResult

sealed struct PresentResult
PresentResult shows the result of presentBuffer call. it show the state of buffer rendering, based on the state result, clients can do more operations to ensure the buffer is displayed on screen correctly. [IMediaSurface#presentBuffer]

Fields

Constants

REJECTED_OBSCURE

PresentResult = {0}
The update request is rejected because the Window is hidden or Surface is obscured by other top surfaces. All presentBufferWithDamage calls will be rejected until previous presentBufferWithDamage have either been discarded or a present Event has been generated and the Window is not hidden. Clients should wait for Surface Events to determine when to present the Surface again.

REJECTED_OFFSCREEN

PresentResult = {1}
The update request is rejected as the surface is meant to be used for OffscreenRendering only.

REJECTED_FORMAT

PresentResult = {2}
The update request is rejected as the surface cannot support the Format.

REJECTED_SWAP_BUFFERS

PresentResult = {3}
Swapping Front and Back buffer failed.

REJECTED_INVALID_FRONT_BUFFER

PresentResult = {4}
The update request is rejected as current Front buffer is invalid

SUBMITTED

PresentResult = {5}
The update request has been submitted to display server.

QUEUED

PresentResult = {6}
The update request has been queued to be submitted to display server.
Last modified on October 29, 2026