-
public final class HeadlessExperimentalDomainThis domain provides experimental commands only supported in headless mode.
-
-
Method Summary
Modifier and Type Method Description final Flow<HeadlessExperimentalEvent>events()Subscribes to all events related to this domain. final Flow<HeadlessExperimentalEvent.NeedsBeginFramesChangedEvent>needsBeginFramesChanged()Issued when the target starts or stops needing BeginFrames. final BeginFrameResponsebeginFrame(BeginFrameRequest input)Sends a BeginFrame to the target and returns when the frame was completed. final Unitdisable()Disables headless events for the target. final Unitenable()Enables headless events for the target. -
-
Method Detail
-
events
final Flow<HeadlessExperimentalEvent> events()
Subscribes to all events related to this domain.
-
needsBeginFramesChanged
@Deprecated(message = "Deprecated in the Chrome DevTools protocol") final Flow<HeadlessExperimentalEvent.NeedsBeginFramesChangedEvent> 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.
-
beginFrame
final BeginFrameResponse beginFrame(BeginFrameRequest input)
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.
-
-
-
-