UserNotificationReader Class
- java.
lang. Object - NativeBase
- com.
microsoft. connecteddevices. userdata. usernotifications. UserNotificationReader
- com.
public class UserNotificationReader
This class provides new incoming user notifications and user notification updates. It also provides access to the collection of user notifications persisted in the Connected Device Platform.
Constructor Summary
Constructor | Description | |
---|---|---|
UserNotificationReader(NativeObject nativeObject) |
Method Summary
Modifier and Type | Method and Description |
---|---|
Event<User |
dataChanged()
Event for when data changes in the UserNotificationReader. |
String |
getSerializedState()
Get the state of the reader that corresponds to the latest notification changes. |
Async |
readBatchAsync(@IntRange(from=0) long maxBatchSize)
Read notification changes including new incoming notifications and updates on existing notifications in batch. |
Constructor Details
UserNotificationReader
protected UserNotificationReader(NativeObject nativeObject)
Parameters:
Method Details
dataChanged
public Event
Event for when data changes in the UserNotificationReader.
Returns:
getSerializedState
public String getSerializedState()
Get the state of the reader that corresponds to the latest notification changes.
readBatchAsync
public AsyncOperation> readBatchAsync(@IntRange(from=0) long maxBatchSize)
Read notification changes including new incoming notifications and updates on existing notifications in batch.
Parameters: