class HeadlessExperimentalDomain
This domain provides experimental commands only supported in headless mode.
beginFrame |
Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a screenshot from the resulting frame. Requires that the target was created with enabled BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also https://goo.gl/3zHXhB for more background. suspend fun beginFrame(input: BeginFrameRequest): BeginFrameResponse |
disable |
Disables headless events for the target. suspend fun disable(): Unit |
enable |
Enables headless events for the target. suspend fun enable(): Unit |
events |
Subscribes to all events related to this domain. fun events(): Flow<HeadlessExperimentalEvent> |
needsBeginFramesChanged |
Issued when the target starts or stops needing BeginFrames. Deprecated. Issue beginFrame unconditionally instead and use result from beginFrame to detect whether the frames were suppressed. fun |