Windows Dev Center

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


public:
property unsigned int ReportInterval { 
   unsigned int get();
   void set (unsigned int value);
}

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

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

Get current location
Get current location
Set up a geofence
Geolocator

 

 

Show:
© 2015 Microsoft