setDesiredPresentationTime

actual fun setDesiredPresentationTime(monotonicClockNanos: Long)

Set the real desired presentation time targeted for this frame.

Unlike setPresentationTime(), which configures hardware headroom, this is the exact target presentation time and is used for frame history reporting. Must be called before endFrame().

Parameters

monotonicClockNanos

Desired presentation timestamp in steady_clock nanoseconds.

expect fun setDesiredPresentationTime(monotonicClockNanos: Long)

Set the real desired presentation time targeted for this frame.

Unlike setPresentationTime(), which configures hardware headroom, this is the exact target presentation time and is used for frame history reporting. Must be called before endFrame().

Parameters

monotonicClockNanos

Desired presentation timestamp in steady_clock nanoseconds.

actual fun setDesiredPresentationTime(monotonicClockNanos: Long)

Set the real desired presentation time targeted for this frame.

Unlike setPresentationTime(), which configures hardware headroom, this is the exact target presentation time and is used for frame history reporting. Must be called before endFrame().

Parameters

monotonicClockNanos

Desired presentation timestamp in steady_clock nanoseconds.

actual fun setDesiredPresentationTime(monotonicClockNanos: Long)

Set the real desired presentation time targeted for this frame.

Unlike setPresentationTime(), which configures hardware headroom, this is the exact target presentation time and is used for frame history reporting. Must be called before endFrame().

Parameters

monotonicClockNanos

Desired presentation timestamp in steady_clock nanoseconds.

actual fun setDesiredPresentationTime(monotonicClockNanos: Long)

Set the real desired presentation time targeted for this frame.

Unlike setPresentationTime(), which configures hardware headroom, this is the exact target presentation time and is used for frame history reporting. Must be called before endFrame().

Parameters

monotonicClockNanos

Desired presentation timestamp in steady_clock nanoseconds.