LocationDisp.LatLongReportFactory object

[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.]

Manages latitude/longitude reports.

Members

The LocationDisp.LatLongReportFactory object has these types of members:

Methods

The LocationDisp.LatLongReportFactory object has these methods.

MethodDescription
ListenForReports

Requests latitude/longitude report events.

RequestPermissions

Opens a system dialog box to request user permission for location-enabled devices.

StopListeningForReports

Cancels requests for latitude/longitude report events.

 

Properties

The LocationDisp.LatLongReportFactory object has these properties.

PropertyAccess typeDescription

DesiredAccuracy

Read/write

The current desired-accuracy value.

LatLongReport

Read-only

The current LocationDisp.DispLatLongReport.

ReportInterval

Read/write

The current latitude/longitude report event interval in milliseconds.

Status

Read-only

The current report status.

 

Examples

The following example code shows how to create this object in HTML code.


<object id="latlongfactory" 
	classid="clsid:9DCC3CC8-8609-4863-BAD4-03601F4C65E8"
	type="application/x-oleobject">
</object>

The following example code shows how to create this object in JScript using Windows Script Host.


var latlongfactory = WScript.CreateObject("LocationDisp.LatLongReportFactory");

The following example code shows how to create this object in VBScript using Windows Script Host.


Dim latlongfactory
Set latlongfactory = WScript.CreateObject("LocationDisp.LatLongReportFactory")

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

None supported

See also

LocationDisp.DispLatLongReport

 

 

Community Additions

ADD
Show: