Einhugur macOS Bridge plugin. |

# EinhugurMacOSBridge.NSCustomTouchBarItem Class (desktop)

Touch Bar item type to display basic elements in the Touch Bar such as Button and text label for example.
For Touch Bars macOS 10.12.2 or later is needed.

EinhugurMacOSBridge.NSTouchBarItem
NSCustomTouchBarItem

class EinhugurMacOSBridge.NSCustomTouchBarItem

#### Constructors

NSCustomTouchBarItem | Constructor that takes Touch Bar item identifier.

#### Properties

ClassName (Inherited) (desktop - console) | Returns the name of the Cocoa class under the hood as String.
CustomizationLabel (Inherited) | Sets or gets the user-visible string identifying this item during bar customization.
Handle (Inherited) | Returns Integer handle to the native NSObject structure.

#### Methods

Release (Inherited) | Releases the NSObject.
Retain (Inherited) | Retains the NSObject
SetView | Sets the view of the custom item to a NSControl (usually NSButton or NSTextField)
SetVisibilityPriority (Inherited) | Sets priority of the Touch Bar item, where the lowest priority ones get hidden if there is no space to show them all.

#### Constants

Version = 5.0 (Inherited) |

#### Examples

If itemIdentifier = "com.einhugur.testapp.button1” then item= new NSCustomTouchBarItem(itemIdentifier)
Dim button as NSButton = new NSButton("Some button", addressof Button1Click)
item.SetView(button)
return item
In this example we could have also stored handle to the button in a property to be able to enable or disable the button later if needed.

#### Supported Platforms:

- macOS Intel 64 bit
- macOS Apple Silicon

#### Unsupported Platforms:

- Windows 32 bit
- Windows 64 bit
- Windows ARM 64 bit
- Linux 32 bit
- Linux 64 bit
- Linux ARM 32 bit
- Linux ARM 64 bit