UserNotificationReader Class

  • java.lang.Object
    • NativeBase
      • com.microsoft.connecteddevices.userdata.usernotifications.UserNotificationReader

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<UserNotificationReader, UserNotificationReaderDataChangedEventArgs> dataChanged()

Event for when data changes in the UserNotificationReader.

String getSerializedState()

Get the state of the reader that corresponds to the latest notification changes.

AsyncOperation<List<UserNotification>> 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:

nativeObject

Method Details

dataChanged

public Event dataChanged()

Event for when data changes in the UserNotificationReader.

Returns:

Event Subscription

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:

maxBatchSize

Applies to