Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
149 lines (125 loc) · 11.1 KB

plugins.core.touchbar.virtual.md

File metadata and controls

149 lines (125 loc) · 11.1 KB

docs » plugins.core.touchbar.virtual


Virtual Touch Bar Manager

API Overview

API Documentation

Constants

Signature plugins.core.touchbar.virtual.LOCATION_DEFAULT_VALUE -> string
Type Constant
Description Default location value.
Signature plugins.core.touchbar.virtual.LOCATION_DRAGGABLE -> string
Type Constant
Description Location is Draggable.
Signature plugins.core.touchbar.virtual.LOCATION_MOUSE -> string
Type Constant
Description Location is Mouse.

Variables

Signature plugins.core.touchbar.virtual.updateLocationCallback -> table
Type Variable
Description Update Location Callback

Functions

Signature plugins.core.touchbar.virtual.callback() -> none
Type Function
Description Callback Function for the Virtual Touch Bar
Parameters
  • obj - the touchbarObject the callback is for
  • message - the message to the callback, either "didEnter" or "didExit"
Returns
  • None
Signature plugins.core.touchbar.virtual.hide() -> none
Type Function
Description Hide the Virtual Touch Bar
Parameters
  • None
Returns
  • None
Signature plugins.core.touchbar.virtual.init() -> self
Type Function
Description Initialise the module.
Parameters
  • None
Returns
  • Self
Signature plugins.core.touchbar.virtual.show() -> none
Type Function
Description Show the Virtual Touch Bar
Parameters
  • None
Returns
  • None
Signature plugins.core.touchbar.virtual.start() -> none
Type Function
Description Initialises the Virtual Touch Bar
Parameters
  • None
Returns
  • None
Signature plugins.core.touchbar.virtual.stop() -> none
Type Function
Description Stops the Virtual Touch Bar
Parameters
  • None
Returns
  • None
Signature plugins.core.touchbar.virtual.touchbar() -> none
Type Function
Description Returns the hs._asm.undocumented.touchbar object if it exists.
Parameters
  • None
Returns
  • hs._asm.undocumented.touchbar
Signature plugins.core.touchbar.virtual.update() -> none
Type Function
Description Updates the visibility and location of the Virtual Touch Bar
Parameters
  • None
Returns
  • None

Fields

Signature plugins.core.touchbar.virtual.enabled <cp.prop: boolean>
Type Field
Description Is true if the plugin is enabled.
Signature plugins.core.touchbar.virtual.isActive <cp.prop: boolean; read-only>
Type Field
Description Is true if the plugin is enabled and the TouchBar is supported on this OS.
Signature plugins.core.touchbar.virtual.lastLocation <cp.prop: point table>
Type Field
Description The last known Virtual Touch Bar Location
Signature plugins.core.touchbar.virtual.supported <cp.prop: boolean; read-only>
Type Field
Description Is true if the Touch Bar is supported on this version of macOS.