UserNotificationChannel Class
- java.
lang. Object - NativeBase
- com.
microsoft. connecteddevices. userdata. usernotifications. UserNotificationChannel
- com.
public class UserNotificationChannel
This class provides the notification change reader which handles the receiving and management of user notifications for the application.
Constructor Summary
Constructor | Description |
---|---|
UserNotificationChannel(@NonNull UserDataFeed userDataFeed) |
Creates and initializes a new instance of UserNotificationChannel |
Method Summary
Modifier and Type | Method and Description |
---|---|
User |
createReader()
Create a user notification reader to receive and manage user notifications published by app server. |
User |
createReaderWithOptions(@NonNull UserNotificationReaderOptions options)
Create a user notification reader with options |
User |
createReaderWithState(@NonNull String serializedState)
Create a user notification reader to receive and manage user notifications published by app server. The reader will start at the provided tracking state. |
Async |
deleteUserNotificationAsync(@NonNull String notificationId)
Delete a user notification based on its id. |
User |
getSyncScope()
Gets the sync scope for this user notification channel. |
Async |
getUserNotificationAsync(@NonNull String notificationId)
Get a user notification based on its id. |
Constructor Details
UserNotificationChannel
public UserNotificationChannel(@NonNull UserDataFeed userDataFeed)
Creates and initializes a new instance of UserNotificationChannel
Parameters:
Method Details
createReader
public UserNotificationReader createReader()
Create a user notification reader to receive and manage user notifications published by app server.
createReaderWithOptions
public UserNotificationReader createReaderWithOptions(@NonNull UserNotificationReaderOptions options)
Create a user notification reader with options
Parameters:
createReaderWithState
public UserNotificationReader createReaderWithState(@NonNull String serializedState)
Create a user notification reader to receive and manage user notifications published by app server. The reader will start at the provided tracking state.
Parameters:
deleteUserNotificationAsync
public AsyncOperation
Delete a user notification based on its id.
Parameters:
getSyncScope
public static UserDataFeedSyncScope getSyncScope()
Gets the sync scope for this user notification channel.
getUserNotificationAsync
public AsyncOperation
Get a user notification based on its id.
Parameters: