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 MediaSurfaceQueueState

sealed struct MediaSurfaceQueueState
MediaSurfaceQueueState provides ability for client to control the presentation state of MediaSurface.

Fields

Constants

PAUSE

MediaSurfaceQueueState = {0}
This state pauses presenting buffers in queue. The buffers are not discarded and Resume state should be set to present the buffers again

RESUME

MediaSurfaceQueueState = {1}
This resumes presenting buffers in queue.

DISCARD

MediaSurfaceQueueState = {2}
Discards all buffer in presentation queue.

DISCARD_WITH_CLEAR

MediaSurfaceQueueState = {3}
Discards all buffer in presentation queue and clear content

CLEAR_INTERNAL_CACHE

MediaSurfaceQueueState = {4}
Delete any internal cache of buffers waiting to be presented again. This can be useful to ensure MediaSurface has reset its internal cache without discarding the presentation queue.

REFRESH

MediaSurfaceQueueState = {5}
Refresh buffer queue
Last modified on October 29, 2026