widgets

Last updated 9 months ago

Touch Bar Widgets Manager

API Overview

  • Functions - API calls offered directly by the extension

  • Methods - API calls which can only be made on an object returned by a constructor

API Documentation

Functions

allGroups

Signature

plugins.core.touchbar.manager.widgets.allGroups() -> table

Type

Function

Description

Returns a table containing all of the widget groups.

Parameters

Returns

Methods

get

Signature

plugins.core.touchbar.manager.widgets:get(id) -> table

Type

Method

Description

Gets a Touch Bar widget

Parameters

Returns

getAll

Signature

plugins.core.touchbar.manager.widgets:getAll() -> table

Type

Method

Description

Returns all of the created widgets

Parameters

Returns

id

Signature

plugins.core.touchbar.manager.widgets:id() -> string

Type

Method

Description

Returns the ID of the widget

Parameters

Returns

new

Signature

plugins.core.touchbar.manager.widgets:new(id, params) -> table

Type

Method

Description

Creates a new Touch Bar Widget.

Parameters

Returns

params

Signature

plugins.core.touchbar.manager.widgets:params() -> function

Type

Method

Description

Returns the paramaters of the widget

Parameters

Returns