UNUserNotificationCenter.GetNotificationSettingsAsync 方法

定义

返回应用的通知设置对象,在返回之前对其进行处理。

public virtual System.Threading.Tasks.Task<UserNotifications.UNNotificationSettings> GetNotificationSettingsAsync ();
abstract member GetNotificationSettingsAsync : unit -> System.Threading.Tasks.Task<UserNotifications.UNNotificationSettings>
override this.GetNotificationSettingsAsync : unit -> System.Threading.Tasks.Task<UserNotifications.UNNotificationSettings>

返回

返回应用的通知设置的任务。

适用于