Skip to content

AppMenuBarManager

Unofficial

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

Import:

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

Signature:

export interface AppMenuBarManager

Constructor

new AppMenuBarManager(app: App)

Constructor.

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

Properties

Property Type Description
app App Reference to the app.
constructor ExtractConstructor<AppMenuBarManager> Constructor reference for the menu bar manager.
onFileOpen Debouncer<[], unknown> Debounced handler for file open events.
onWindowFrameChange Debouncer<[], unknown> Debounced handler for window frame changes.
requestRender Debouncer<[], unknown> Debounced function to re-render the menu bar.

Methods

Method Returns Description
_onFileOpen() void Internal handler for file open events.
applyHotkeys(arg1) unknown Apply hotkey accelerators to menu items.
buildMenu() unknown Build the native menu bar structure.
getAcceleratorFromHotkey(arg1) unknown Convert a hotkey binding to a native accelerator string.
hideUnregisteredCommands(arg1) unknown Hide menu items for commands that are not registered.
render() unknown Render the menu bar.
updateShareMenuItem() void Update the share menu item state.
updateViewState() unknown Update the menu bar based on the current view state.
updateWorkspace() unknown Update the menu bar based on workspace changes.

Links to this page: