forked from reactiveui/ReactiveUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInterfaces.cs
More file actions
27 lines (25 loc) · 1.08 KB
/
Interfaces.cs
File metadata and controls
27 lines (25 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Reactive;
using ReactiveUI;
using Xamarin.Geolocation;
namespace ReactiveUI.Mobile
{
public interface IReactiveGeolocator
{
/// <summary>
/// Returns an IObservable that continuously updates as the user's
/// physical location changes. It is super important to make sure to
/// dispose all subscriptions to this IObservable.
/// </summary>
/// <param name="minUpdateTime">Minimum update time.</param>
/// <param name="minUpdateDist">Minimum update dist.</param>
/// <param name="includeHeading">If set to <c>true</c> include heading.</param>
IObservable<Position> Listen(int minUpdateTime, double minUpdateDist, bool includeHeading = false);
/// <summary>
/// Returns a single lookup of the user's current physical position
/// </summary>
/// <returns>The current physical location.</returns>
/// <param name="includeHeading">If set to <c>true</c> include heading.</param>
IObservable<Position> GetPosition(bool includeHeading = false);
}
}