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 IBufferQueueReader

interface IBufferQueueReader
Extends com.amazon.apmf.IStandard This interface defines a buffer queue reader

Methods

tryDequeueFrame()

DequeueStatus tryDequeueFrame(out Frame* frame)
API to get a frame from buffer queue. Note: Clients may recieve a null object in return if buffer queue does not have a free frame available. We will trigger onFrameAvailable callback on client listeners (if they implemented listner interface and passed while attaching to buffer queue) once a frame is available for clients to use.

Parameters

frame (out)
Frame* — Required pass Frame* and queue will return the available (if any) frame.

Returns

DequeueStatus DequeueStatus

enqueueFrame()

void enqueueFrame(Frame* frame)
When a client is done processing Frame which was made available via onFrameAvailable() callback, they should use this API to return the frame back to queue.

Parameters

frame
Frame* — Required enqueue the frame back to the reader queue
Last modified on October 29, 2026