Difference between revisions of "WebLocation"

From Xojo Documentation

(Created page with "N/A")
 
 
Line 1: Line 1:
N/A
+
{{ClassBox
 +
| super = [[Object]]
 +
| scope = global
 +
| newinversion = 2021r1
 +
}}
 +
{{Description
 +
|text=The device location provided by the browser.  }}
 +
 
 +
<dynamicTable id="Events" super="TextEdit" class="eventTable" title="Events" columns="3">
 +
{{Event | name=Error | description=Error(error As RuntimeException)&#x0A;Raised when an error occurs. }}
 +
{{Event | name=LocationChanged | description=LocationChanged(latitude As Double, longitude As Double, accuracy As Double, altitude As Double, altitudeAccuracy As Double, course As Double, speed As Double)&#x0A;Raised when the device location information is received from the browser. }}
 +
</dynamicTable>
 +
 
 +
<dynamicTable id="Methods" super="" class="methodTable" title="Methods" columns="3">
 +
{{Method | name=Request |  params= highAccuracy As Boolean = False | description=Request(highAccuracy As Boolean = False)&#x0A;Requests the user's location a single time. Setting highAccuracy to True uses more power on mobile devices.}}
 +
{{Method | name=Start |  params= highAccuracy As Boolean = False | description=Start(highAccuracy As Boolean = False)&#x0A;Starts monitoring the user's location. Setting highAccuracy to True uses more power on mobile devices.}}
 +
{{Method | name=Stop | description=Stop()&#x0A;Stops monitoring the user's location.}}
 +
</dynamicTable>
 +
 
 +
==Notes==
 +
WebLocation works only over HTTPS connections.
 +
 
 +
[[Category:Web]]

Latest revision as of 22:00, 1 March 2021

Class (inherits from Object)


New in 2021r1

The device location provided by the browser.

Events
Close DropObject MouseEnter
ConstructContextualMenu EnableMenuItems MouseExit
ContextualMenuAction Error MouseMove
DragEnter KeyDown MouseWheel
DragExit KeyUp Open
DragOver LocationChanged
Methods
Request Start Stop

Notes

WebLocation works only over HTTPS connections.