Skip to content

ElectronDock.bounce method

ElectronDock › bounce

Unofficial

Bounces the dock icon. When critical is passed, the icon bounces until the app becomes active or the request is canceled; when informational is passed, it bounces for one second. macOS only.

Signature:

bounce(type?: "critical" | "informational" | undefined): number

Parameters:

Parameter Type Description
type? "critical" | "informational" | undefined The bounce type.

Returns: numberAn ID representing the request.