Android Amplify- DataStoreChannelEventName RECEIVED_FROM_CLOUD 不再受支持

Android Amplify- DataStoreChannelEventName RECEIVED_FROM_CLOUD no longer supported

所以我将我的放大库更新到最新版本并且 RECEIVED_FROM_CLOUD 数据存储事件已被删除。是否有可以使用的替代品来做同样的事情?

RECEIVED_FROM_CLOUD 是一个未记录的内部事件。它已从 Amplify Android 1.5.0.

起删除

从那时起,我们提供了documentation for a number of public DataStore events, here

此外,还有一个 SUBSCRPTION_DATA_PROCESSED 事件,它将在以下时间触发:

The server sent the client data over the WebSocket subscription. The data was successfully melded back into the local store.

我认为那个是旧的RECEIVED_FROM_CLOUD最直接的替代品。

来源:我实施并删除了原始 RECEIVED_FROM_CLOUD 事件。