mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-16 15:16:34 +01:00
19 lines
702 B
C#
19 lines
702 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using TINK.Model.Device;
|
|
using Xamarin.Essentials;
|
|
|
|
namespace TINK.Model.Services.Geolocation
|
|
{
|
|
/// <summary> Query geolocation. </summary>
|
|
public interface IGeolocation : IGeolodationDependent
|
|
{
|
|
/// <summary> Gets the current location.</summary>
|
|
/// <param name="timeStamp">Time when geolocation is of interest. Is used to determine for some implementations whether cached geoloation can be used or not.</param>
|
|
/// <returns></returns>
|
|
Task<Location> GetAsync(DateTime? timeStamp = null);
|
|
|
|
/// <summary> If true location data returned is simulated.</summary>
|
|
bool IsSimulation { get; }
|
|
}
|
|
}
|