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'): number

Parameters:

ParameterTypeDescription
type?'critical' | 'informational'The bounce type.

Returns: number — An ID representing the request.