EN
このコンテンツは設定された言語で表示できません。英語版のページが表示されます。

Geofence.DwellTime | dwellTime property

Applies to Windows and Windows Phone

The minimum time that a position has to be inside or outside of the Geofence in order for the notification to be triggered.

Syntax


var dwellTime = geofence.dwellTime;

Property value

Type: Number [JavaScript] | System.TimeSpan [.NET] | Windows::Foundation::TimeSpan [C++]

The minimum time that a position has to be inside or outside of the geofence in order for the notification to be triggered.

Remarks

When creating geofences that use a dwell time, the time span must be greater than 0.

Note that the DwellTime value is used for monitoring both the Entered and Exited states of a single geofence. If you want to provide different dwell time values for entering and exiting, you should create two Geofence objects, using one to track the Entered state and another to track the Exited state. Then you can specify a different the dwell time for each object.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Geolocation.Geofencing
Windows::Devices::Geolocation::Geofencing [C++]

Metadata

Windows.winmd

See also

Geofence

 

 

表示:
© 2014 Microsoft