Click or drag to resize

WidgetInput Class

This object handles input on a widget.
Inheritance Hierarchy
SystemObject
  IBM.Watson.DeveloperCloud.WidgetsWidgetInput

Namespace:  IBM.Watson.DeveloperCloud.Widgets
Assembly:  unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
[SerializableAttribute]
public class Input

The WidgetInput type exposes the following members.

Constructors
  NameDescription
Public methodWidgetInput
Constructs an input object for a Widget.
Top
Properties
  NameDescription
Public propertyAllowMany
If true, then more than one output may connect to this input.
Public propertyConnections
The array of outputs connected to this input.
Public propertyDataReceiver
The delegate to the receiver function, this is set when Start() is called on this input.
Public propertyDataType
The type of data this input accepts.
Public propertyDataTypeName
The name of the data type.
Public propertyFullInputName
The fully qualified name of this input.
Public propertyInputName
The name of this input.
Public propertyOnOutputAdded
Gets or sets the on output added callback
Public propertyOnOutputRemoved
Gets or sets the on output removed callback
Public propertyOwner
A reference to the widget that contains this input, this is initialized when the Widget starts.
Public propertyOwnerName
The name of the owning widget.
Public propertyReceiverFunction
The name of the receiver function.
Top
Methods
  NameDescription
Public methodAddOutput
Add output to input.
Public methodReceiveData
Receives input and forwards that input onto the assigned delegate. Optionally, the user may inherit from Input and override the ReceiveData() function.
Public methodRemoveOutput
Remove the output.
Public methodStart
Start this Input.
Top
See Also