LocationDisp.LatLongReportFactory.ListenForReports method

[The Location API object model is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, to access location from a website, use the W3C Geolocation API. To access location from a desktop application, use the Windows.Devices.Geolocation API.]

Requests latitude/longitude report events.

Syntax

LocationDisp.LatLongReportFactory.ListenForReports(
  requestedReportInterval
)

Parameters

requestedReportInterval

Number (**double word**) representing the requested time between latitude/longitude report events, in milliseconds. See Remarks.

Return value

This method does not return a value.

Remarks

The location provider is not required to provide reports at the interval that you request. Read the value of the ReportInterval property to discover the true report interval setting.

Examples

For an example of how to use this method, see Listening for LatLong Report Events.

Requirements

Requirement Value
Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
None supported
Header
Locationapi.h