通过


UserNotificationReader 类

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

public class UserNotificationReader

此类提供新的传入用户通知和用户通知更新。 它还提供对已连接设备平台中持久保存的用户通知集合的访问权限。

构造函数摘要

构造函数 说明
UserNotificationReader(NativeObject nativeObject)

方法摘要

修饰符和类型 方法和描述
Event<UserNotificationReader, UserNotificationReaderDataChangedEventArgs> dataChanged()

在 UserNotificationReader 中更改数据时的事件。

String getSerializedState()

获取与最新通知更改对应的读取器的状态。

AsyncOperation<List<UserNotification>> readBatchAsync(@IntRange(from=0) long maxBatchSize)

批量读取通知更改,包括新的传入通知和现有通知的更新。

构造函数详细信息

UserNotificationReader

protected UserNotificationReader(NativeObject nativeObject)

参数:

nativeObject

方法详细信息

dataChanged

public Event dataChanged()

在 UserNotificationReader 中更改数据时的事件。

返回:

事件订阅

getSerializedState

public String getSerializedState()

获取与最新通知更改对应的读取器的状态。

readBatchAsync

public AsyncOperation> readBatchAsync(@IntRange(from=0) long maxBatchSize)

批量读取通知更改,包括新的传入通知和现有通知的更新。

参数:

maxBatchSize

适用于