Skip to content

Beeper

Plays a short, throttled beep to signal a rejected or blocked user action.

Import:

import { Beeper } from 'obsidian-dev-utils/beeper';

Signature:

export class Beeper

Methods

MethodReturnsDescription
beep()voidPlays a short beep. A no-op if called again within BEEP_THROTTLE_MILLISECONDS of the previous beep (so a burst of rejected actions does not stack into a buzz), or if the Web Audio API is unavailable (e.g. the jsdom test environment).