Skip to main content

apply

Function apply 

Source
pub async fn apply(
    client: &CdpClient,
    session_id: &str,
    enabled: bool,
) -> Result<()>
Expand description

Make Chromium treat the tab as focused and visible (or stop doing so). setFocusEmulationEnabled is what flips document.visibilityState, document.hasFocus(), requestAnimationFrame, and timer throttling for a minimized window or a locked display; setIdleOverride additionally answers the Idle Detection API with “active, unlocked”.