Share via


MotionSensor.WaitForMotion(Int32) Method

Definition

Used by the application to wait for detection of a motion from the motion sensor.

public abstract void WaitForMotion (int timeout);
abstract member WaitForMotion : int -> unit
Public MustOverride Sub WaitForMotion (timeout As Integer)

Parameters

timeout
Int32

Maximum number of milliseconds for the motion sensor to wait for a person to be present before it returns control back to the application. If 0, the method returns immediately. If WaitForever, the method waits as long as needed until motion is detected or an error occurs.

Applies to