MotionSensor Class (POS for .NET v1.12 SDK Documentation)

2/27/2008

Defines the programmatic interface for a UPOS Motion Sensor device.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public MustInherit Class MotionSensor
    Inherits PosCommon
public abstract class MotionSensor : PosCommon
public ref class MotionSensor abstract : public PosCommon
public abstract class MotionSensor extends PosCommon
public abstract class MotionSensor extends PosCommon

Remarks

Capabilities

The motion sensor has the following minimal set of capabilities:

  • Supports detection of a person present at the POS device.

  • Supports reporting of motion-detection changes, either by hardware or software detection.

Model

The motion sensor defines two motion sensor indications as constants. It is assumed that the motion sensor supports present and absent indications. The constants for the motion sensor are as follows:

  • StatusMotionPresent

  • StatusMotionAbsent

StatusUpdateEvent events are raised by using the previous values. The Timeout value is used to set the number of milliseconds between the last time someone was present and a StatusMotionAbsentStatusUpdateEvent being raised.

Device Sharing

The Motion Sensor is a shareable device. Its device-sharing rules are as follows:

  • After opening and enabling the device, the application can access all properties and methods and receive StatusUpdateEvent events.

  • If more than one application has opened and enabled the device, each of these applications can access its properties and methods. StatusUpdateEvent events are raised to all these applications.

  • The Motion Sensor cannot be claimed for exclusive access. Therefore, if an application calls claim or release, these methods raise an exception.

Inheritance Hierarchy

System.Object
   Microsoft.PointOfService.PosDevice
     Microsoft.PointOfService.PosCommon
      Microsoft.PointOfService.MotionSensor
         Microsoft.PointOfService.BasicServiceObjects.MotionSensorBasic

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

MotionSensor Members
Microsoft.PointOfService Namespace