Share via


Geolocator.ReportInterval Property

Definition

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.

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

void ReportInterval(uint32_t value);
public uint ReportInterval { get; set; }
var uInt32 = geolocator.reportInterval;
geolocator.reportInterval = uInt32;
Public Property ReportInterval As UInteger

Property Value

UInt32

unsigned int

uint32_t

The requested minimum time interval between ___location updates, in milliseconds.

Windows requirements

App capabilities
___location

Remarks

Important

The value of ReportInterval must be greater than or equal to 1. Passing 0 is not supported, and is treated as not set. While any value ≥ 1 is accepted, the system enforces a practical minimum of 1000 milliseconds (1 second) for ___location updates.

Note

The default report interval is 1 second or as frequent as the hardware can support, whichever is shorter. Location updates can be set to a different frequency if you specify a MovementThreshold or set ReportInterval to a different value. If your app sets both MovementThreshold and ReportInterval, ___location will be updated according to MovementThreshold.

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.

Applies to

See also