UserNotificationReader 類別
- java.
lang. Object - NativeBase
- com.
microsoft. connecteddevices. userdata. usernotifications. UserNotificationReader
- com.
public class UserNotificationReader
這個類別提供新的傳入使用者通知和使用者通知更新。 它也提供在連線裝置平臺中保存之使用者通知集合的存取權。
建構函式摘要
建構函式 | Description | |
---|---|---|
UserNotificationReader(NativeObject nativeObject) |
方法摘要
修飾詞與類型 | 方法與描述 |
---|---|
Event<User |
dataChanged()
UserNotificationReader 中的資料變更時的事件。 |
String |
getSerializedState()
取得對應至最新通知變更的讀取器狀態。 |
Async |
readBatchAsync(@IntRange(from=0) long maxBatchSize)
讀取通知變更,包括新的傳入通知,以及批次中現有通知的更新。 |
建構函式詳細資料
UserNotificationReader
protected UserNotificationReader(NativeObject nativeObject)
Parameters:
nativeObject
方法詳細資料
dataChanged
public Event
UserNotificationReader 中的資料變更時的事件。
Returns:
事件訂閱
getSerializedState
public String getSerializedState()
取得對應至最新通知變更的讀取器狀態。
readBatchAsync
public AsyncOperation> readBatchAsync(@IntRange(from=0) long maxBatchSize)
讀取通知變更,包括新的傳入通知,以及批次中現有通知的更新。
Parameters:
maxBatchSize