Rediger

LocationOptions overview

When you implement location from AL, you can optionally pass options to LocationProvider.RequestLocationAsync(options). Access the options by using Microsoft.Dynamics.Nav.Client.Capabilities.LocationOptions, which is found in the Microsoft.Dynamics.Nav.ClientExtensions DLL.

For most scenarios, you don't need to specify options.

LocationOptions

Option Description
bool EnableHighAccuracy A value that provides a hint to the device that this request must have the best possible location accuracy.
int Timeout The maximum length of time, in milliseconds, that is allowed to pass for a location request.
int MaximumAge The maximum age, in milliseconds, of a cached location.

Implementing location in AL