HardwareBufferFrame.ReleaseCallback


interface HardwareBufferFrame.ReleaseCallback


A callback to be invoked when the HardwareBufferFrame is released.

Summary

Public functions

Unit
release(releaseFence: SyncFenceCompat?)

Releases the underlying resources of the HardwareBufferFrame.

Public functions

release

fun release(releaseFence: SyncFenceCompat?): Unit

Releases the underlying resources of the HardwareBufferFrame.

Parameters
releaseFence: SyncFenceCompat?

A SyncFenceCompat that must signal before the underlying resources can be fully released, or null if the resources can be released immediately.