Esempio n. 1
0
 /// <summary>
 /// The accuracy of the location data.
 ///
 /// The receiver does its best to achieve the requested accuracy; however, the actual accuracy is not guaranteed.
 /// You should assign a value to this property that is appropriate for your usage scenario.
 /// For example, if you need the current location only within a kilometer, you should specify <see cref="ISN_CLLocationAccuracy.Kilometer"/>
 /// and not <see cref="ISN_CLLocationAccuracy.BestForNavigation"/>.
 /// Determining a location with greater accuracy requires more time and more power.
 ///
 /// When requesting high-accuracy location data,
 /// the initial event delivered by the location service may not have the accuracy you requested.
 /// The location service delivers the initial event as quickly as possible.
 /// It then continues to determine the location with the accuracy you requested and delivers additional events,
 /// as necessary, when that data is available.
 ///
 /// For iOS and macOS, the default value of this property is <see cref="ISN_CLLocationAccuracy.Best"/>.
 /// For watchOS, the default value is <see cref="ISN_CLLocationAccuracy.HundredMeters"/>.
 /// </summary>
 public static void SetDesiredAccuracy(ISN_CLLocationAccuracy value)
 {
     ISN_CLNativeAPI.SetDesiredAccuracy(value);
 }
Esempio n. 2
0
        public static void SetDesiredAccuracy(ISN_CLLocationAccuracy value)
        {
#if API_ENABLED
            _ISN_CL_SetDesiredAccuracy((int)value);
#endif
        }