using System.Threading.Tasks; namespace TINK.Services.Permissions { public interface ILocationPermission { /// Checks the permission status. /// Current permission status. Task CheckStatusAsync(); /// Requests location permission. /// Permission status after request. Task RequestAsync(); bool OpenAppSettings(); } /// /// Holds the permission status. /// public enum Status { // // Summary: // The permission hasn't been granted or requested and is in an unknown state. Unknown = 0, // // Summary: // The user has denied the permission. Denied = 1, // // Summary: // The user has denied the permission and . DeniedRequiresSettingsUI = 8, // // Summary: // The user has granted permission. Granted = 3, } }