MenubarAPI
Defined in: namespaces.ts:1477
Methods
Section titled “Methods”register()
Section titled “register()”register(
options):Promise<true>
Defined in: namespaces.ts:1479
Creates an NSStatusItem for this plugin.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Promise<true>
update()
Section titled “update()”update(
options):Promise<true>
Defined in: namespaces.ts:1481
Updates the icon and/or label.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Promise<true>
setBadge()
Section titled “setBadge()”setBadge(
count):Promise<true>
Defined in: namespaces.ts:1483
Sets badge overlay count (0 clears).
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Promise<true>
setContent()
Section titled “setContent()”setContent(
descriptor):Promise<true>
Defined in: namespaces.ts:1485
Stores a view descriptor for the popover content.
Parameters
Section titled “Parameters”descriptor
Section titled “descriptor”Returns
Section titled “Returns”Promise<true>
remove()
Section titled “remove()”remove():
Promise<true>
Defined in: namespaces.ts:1487
Removes the NSStatusItem.
Returns
Section titled “Returns”Promise<true>