Platforms to show: All Mac Windows Linux Cross-Platform
WindowsLocationManagerMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Windows Location | MBS WinFrameworks Plugin | 20.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
You may need to StartEvents to later query location or receive events.
see MSDN for details:
https://docs.microsoft.com/en-us/windows/win32/locationapi/windows-location-api-portal
See CLLocationManagerMBS class for macOS.
- 2 events
- event LocationChanged(Report as WindowsLocationMBS)
- event StatusChanged(Status as Integer)
- 5 properties
- property DesiredAccuracy as Integer
- property Handle as Integer
- property Report as WindowsLocationMBS
- property ReportInterval as Integer
- property ReportStatus as Integer
- 5 methods
- method Constructor
- method RequestPermissions(win as DesktopWindow)
- method RequestPermissions(win as window)
- method StartEvents(RequestedReportInterval as Integer = 0)
- method StopEvents
- 7 constants
Location Desired Accuracy
Constant | Value | Description |
---|---|---|
kLocationDesiredAccuracyDefault | 0 |
The sensor should use the accuracy for which it can optimize power use and other cost considerations. |
kLocationDesiredAccuracyHigh | 1 |
The sensor should deliver the most accurate report possible. This includes using services that might charge money, or consuming higher levels of battery power or connection bandwidth. |
Location Report Status
Constant | Value | Description |
---|---|---|
kLocationReportStatusAccessDenied | 2 |
No permissions have been granted to access this report type. Call RequestPermissions. |
kLocationReportStatusError | 1 |
There was an error when creating the report, or location providers for the requested type are unable to provide any data. Location providers might be currently unavailable, or location providers cannot obtain any data. For example, this state may occur when a GPS sensor is indoors and no satellites are in view. |
kLocationReportStatusInitializing | 3 |
The report is being initialized. |
kLocationReportStatusNotSupported | 0 |
The requested report type is not supported by the API. No location providers of the requested type are installed. |
kLocationReportStatusRunning | 4 |
The report is running. New location data for the requested report type is available. |
This class has no sub classes.
Some examples using this class:
Blog Entries
Xojo Developer Magazine
Release notes
- Version 20.4
- Added WindowsLocationManagerMBS, WindowsLocationMBS and WindowsLocationExceptionMBS classes to query current computer location on Windows 7 and newer.
The items on this page are in the following plugins: MBS WinFrameworks Plugin.
WindowsLocationExceptionMBS - WindowsLocationMBS