Condividi tramite


Classe UserNotificationChannel

public sealed class UserNotificationChannel : IUserNotificationChannel

Questa classe fornisce il lettore di modifiche di notifica che gestisce la ricezione e la gestione delle notifiche utente per l'applicazione.

Metodi

CreateReader()

Creare un lettore di notifica utente per ricevere e gestire le notifiche utente pubblicate dal server app.

public UserNotificationReader CreateReader()

CreateReader(UserNotificationReaderOptions)

Creare un lettore di notifica utente con opzioni

public UserNotificationReader CreateReader(UserNotificationReaderOptions options)

CreateReaderWithState(String)

Creare un lettore di notifica utente per ricevere e gestire le notifiche utente pubblicate dal server app. Il lettore inizierà allo stato di rilevamento specificato.

public UserNotificationReader CreateReaderWithState(String readerState)

GetUserNotificationAsync(String)

Ottenere una notifica utente in base all'ID.

public IAsyncOperation<UserNotification> GetUserNotificationAsync(String notificationId)

DeleteUserNotificationAsync(String)

Ottenere una notifica utente in base all'ID.

public IAsyncOperation<UserNotificationUpdateResult> DeleteUserNotificationAsync(String notificationId)

SyncScope()

Ottenere l'ambito di sincronizzazione di questo canale di notifica utente.

public static IUserDataFeedSyncScope SyncScope()