Class: SensorContext
InkInput.SensorContext()
Sensor context
Constructor
new SensorContext()
Properties:
Name | Type | Description |
---|---|---|
inkChannelsContext | InkInput.SensorChannelsContext | Reference to context with underlying X and Y channels |
Extends
Methods
addContext(channelsContext)
Associate channel group with this context
Parameters:
Name | Type | Description |
---|---|---|
channelsContext | InkInput.SensorChannelsContext | Grouping context |
getContext(id) → InkInput.SensorChannelsContext
Parameters:
Name | Type | Description |
---|---|---|
id | string | Channel group id |
Returns:
Sensor channel group associated with this id
Type
InkInput.SensorChannelsContext
getContextByChannelID(channelID) → InkInput.SensorChannelsContext
Allocates group which includes channel with provided id
Parameters:
Name | Type | Description |
---|---|---|
channelID | string |
Returns:
Allocated sensor channel group
Type
InkInput.SensorChannelsContext
(static) createDefaultInstance(device, inkProvider) → InkInput.SensorContext
Creates default sensor context instance, based on ink provider.This context contains default sensor channel group.
Parameters:
Name | Type | Description |
---|---|---|
device | InkInput.InputDevice | |
inkProvider | InkInput.InkInputProvider |
Returns:
default instance
Type