MenubarAPI
Defined in: namespaces.ts:1478
Methods
Section titled “Methods”register()
Section titled “register()”register(
options):Promise<true>
Defined in: namespaces.ts:1480
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:1482
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:1484
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:1486
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:1488
Removes the NSStatusItem.
Returns
Section titled “Returns”Promise<true>