UserNotificationChannel

public sealed class UserNotificationChannel : IUserNotificationChannel

此类提供通知更改读取器,用于处理应用程序的用户通知的接收和管理。

方法

CreateReader ()

创建用户通知读取器以接收和管理应用服务器发布的用户通知。

public UserNotificationReader CreateReader()

CreateReader (UserNotificationReaderOptions)

使用选项创建用户通知读取器

public UserNotificationReader CreateReader(UserNotificationReaderOptions options)

CreateReaderWithState (字符串)

创建用户通知读取器以接收和管理应用服务器发布的用户通知。 读取器将从提供的跟踪状态开始。

public UserNotificationReader CreateReaderWithState(String readerState)

GetUserNotificationAsync (字符串)

根据 ID 获取用户通知。

public IAsyncOperation<UserNotification> GetUserNotificationAsync(String notificationId)

DeleteUserNotificationAsync (字符串)

根据 ID 获取用户通知。

public IAsyncOperation<UserNotificationUpdateResult> DeleteUserNotificationAsync(String notificationId)

SyncScope ()

获取此用户通知通道的同步范围。

public static IUserDataFeedSyncScope SyncScope()