Skip to main content

Switch

Switch

Overview needed


Constructor

public Switch

new Switch()

Initializes Switch with no input ports, a single output port, and predetermined sizes.


Properties

No publicly accessible properties on Switch


Methods

public click

click() => void

Toggles Switch.

public isOn

isOn() => false | true

Utility function to check if this Switch is on or not.

Returns

  •   false | true – True if the Switch is toggled, false otherwise.

public getDisplayName

getDisplayName() => string

Returns name of Component.

Returns

  •   string – The string "Switch".

public getImageName

getImageName() => string

Description needed

Returns

  •   stringDescription needed

Static Methods

No static methods for Switch