Skip to main content

Class: SensorContext

InkInput.SensorContext()

Sensor context

Constructor

new SensorContext()

Properties:
NameTypeDescription
inkChannelsContextInkInput.SensorChannelsContextReference to context with underlying X and Y channels

Extends

Methods

addContext(channelsContext)

Associate channel group with this context

Parameters:
NameTypeDescription
channelsContextInkInput.SensorChannelsContextGrouping context

getContext(id) → InkInput.SensorChannelsContext

Parameters:
NameTypeDescription
idstringChannel 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:
NameTypeDescription
channelIDstring
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:
NameTypeDescription
deviceInkInput.InputDevice
inkProviderInkInput.InkInputProvider
Returns:

default instance

Type

InkInput.SensorContext

Home