Skip to content

AppMenuBarManager

Unofficial

Manager for the application menu bar (native desktop menu).

Import:

import type { AppMenuBarManager } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface AppMenuBarManager

Constructor

new AppMenuBarManager(app: App)

Constructor.

To get the constructor instance, use getAppMenuBarManagerConstructor from obsidian-typings/implementations.

Properties

PropertyTypeDescription
appAppReference to the app.
constructorExtractConstructor<AppMenuBarManager>Constructor reference for the menu bar manager.
onFileOpenDebouncer<[], unknown>Debounced handler for file open events.
onWindowFrameChangeDebouncer<[], unknown>Debounced handler for window frame changes.
requestRenderDebouncer<[], unknown>Debounced function to re-render the menu bar.

Methods

MethodReturnsDescription
_onFileOpen()voidInternal handler for file open events.
applyHotkeys(arg1)unknownApply hotkey accelerators to menu items.
buildMenu()unknownBuild the native menu bar structure.
getAcceleratorFromHotkey(arg1)unknownConvert a hotkey binding to a native accelerator string.
hideUnregisteredCommands(arg1)unknownHide menu items for commands that are not registered.
render()unknownRender the menu bar.
updateShareMenuItem()voidUpdate the share menu item state.
updateViewState()unknownUpdate the menu bar based on the current view state.
updateWorkspace()unknownUpdate the menu bar based on workspace changes.

Links to this page: