ztcl::location status
Gives the permission and whether the location service is on.
ztcl::location status
Description
Gives a dict: permission, one of granted, denied, or undetermined (the user has not answered yet), and enabled, 1 when the location service of the device is on. It shows no dialog.
Returns
A dict with the keys permission and enabled.
Examples
# A host with no location service, as a desktop.
% catch {ztcl::location status} msg; set msg
the location is not available on this platform
Errors
% ztcl::location status x
wrong # args: should be "ztcl::location status"
-errorcode TCL WRONGARGS
Facts
- Capability
location. A new interpreter does not have it until the host turns it on.- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.6