namespace System.Application.Services { /// /// 通知栏服务 /// /// public interface INotificationService where TNotificationType : Enum { /// /// 获取是否有通知权限 /// /// bool AreNotificationsEnabled(); /// /// 显示通知 /// /// 通知内容 /// 通知类型 /// /// 通知标题 /// void Notify( string text, TNotificationType notificationType, bool autoCancel = true, string? title = default, Type? entrance = default); /// /// 取消通知 /// /// void Cancel(TNotificationType notificationType); /// /// 取消所有通知 /// void CancelAll(); /// /// 下载进度通知 /// Progress NotifyDownload( string text, TNotificationType notificationType, string? title = default); } }