HardwareBufferFrame.Builder


interface HardwareBufferFrame.Builder


A Builder for HardwareBufferFrame instances.

Summary

Public functions

HardwareBufferFrame!

Builds a HardwareBufferFrame instance.

HardwareBufferFrame.Builder!

Sets the content time of the frame.

HardwareBufferFrame.Builder!

Sets the metadata associated with the frame.

Public functions

build

fun build(): HardwareBufferFrame!

Builds a HardwareBufferFrame instance.

setContentTimeUs

@CanIgnoreReturnValue
fun setContentTimeUs(contentTimeUs: Long): HardwareBufferFrame.Builder!

Sets the content time of the frame.

Parameters
contentTimeUs: Long

The presentation timestamp of the frame, in microseconds.

Returns
HardwareBufferFrame.Builder!

This builder.

setMetadata

@CanIgnoreReturnValue
fun setMetadata(metadata: (Mutable)Map<String!, Any!>!): HardwareBufferFrame.Builder!

Sets the metadata associated with the frame.

Parameters
metadata: (Mutable)Map<String!, Any!>!

The metadata to associate with this frame.

Returns
HardwareBufferFrame.Builder!

This builder.