Skip to main content

Class: SensorData

InkInput.SensorData(context, idopt)

new SensorData(context, idopt)

Parameters:
NameTypeAttributesDefaultDescription
contextInkInput.InputContextUnderlying sensor context
idstring.<GUID><optional>auto generated GUIDSensor data ID
Properties:
NameTypeAttributesDefaultDescription
createdlongCreation timestamp
inkStateInkInput.SensorData.InkState<optional>PLANE
inkStreamInkInput.SensorStreamReference to stream with underlying X and Y channels

Extends

Methods

add(stream)

Adds reference to underlying SensorStream

Parameters:
NameTypeDescription
streamInkInput.SensorStream

Type Definitions

InkState

Enumeration of the input provider type

Properties:
NameTypeDescription
PLANEobjectInk device is writing on a surface
HOVERINGobjectHovering over a surface
IN_VOLUMEobjectUsing the ink device in the air, with active inking
Movingobjectthe pen in the air with disabled inking

Home