using System.Threading.Tasks;
using Xamarin.Essentials;
namespace System.Application.Services
{
///
/// 运行时权限
///
public interface IPermissions
{
///
public interface IPermission
{
///
Task CheckStatusAsync();
///
Task RequestAsync();
///
bool ShouldShowRationale();
}
///
/// 获取手机号码所需权限
///
public interface IGetPhoneNumber : IPermission { }
///
/// 检查并申请一组权限
///
///
///
Task CheckAndRequestAsync(IPermission permission);
}
}