accepts

abstract fun accepts(command: PlatformDrawCommand): Boolean(source)

Validates whether this renderer accepts an immutable payload before any drawing in the batch.

This operation must not draw, produce native frames, or mutate the command. Invalid foreign or expired payloads may throw instead of returning false.

Return

true only when this renderer can execute the payload in the current batch.

Parameters

command

platform-owned immutable payload.

Throws

when adapter ownership or payload validity fails.