Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Geolocator.ReportInterval | reportInterval property

The requested minimum time interval between location updates, in milliseconds. If your application requires updates infrequently, set this value so that location services can conserve power by calculating location only when needed.

Syntax


var reportInterval = geolocator.reportInterval;
geolocator.reportInterval = reportInterval;

Property value

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

The requested minimum time interval between location updates.

Remarks

If another application has requested more frequent updates, by specifying a smaller value for ReportInterval, your application may receive updates at a higher frequency than requested.

The default report interval is 1 second or as frequent as the hardware can support – whichever is shorter. Location can be updated at a different frequency by specifying a MovementThreshold or setting ReportInterval to a different value. If your app sets MovementThreshold and ReportInterval, location will be updated according to MovementThreshold.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Capabilities

location
ID_CAP_LOCATION [Windows Phone]

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

Capabilities

location
ID_CAP_LOCATION [Windows Phone]

See also

Detect a user's location
Respond to location updates
Set up a geofence
Geolocator

 

 

Show:
© 2015 Microsoft