MotionSensor Class

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

Usage

'Usage
Dim motionSensor1 As New MotionSensor()

Syntax

'Declaration
MustInherit Public Class MotionSensor
    Inherits PosCommon
public abstract class MotionSensor : PosCommon
public abstract ref class MotionSensor : 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 these motion sensor are:

  • StatusMotionPresent

  • StatusMotionAbsent

StatusUpdateEvent events are fired using the above values. The timeout value is used to set the number of milliseconds between the last time someone was present and a StatusMotionAbsent StatusUpdateEvent being fired.

Device Sharing

The motion sensor is a sharable device. Its device sharing rules are:

  • 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 fired to all of 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.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

MotionSensor Members
Microsoft.PointOfService Namespace