Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
向用户通知进度,在同步期间被调用。
boolean SyncObserver.syncProgress(int state, SyncResult data)
state 一个 SyncOberver.States 常量,表示同步的当前状态。
数据 包含最新同步结果的 SyncResult。
返回值为真会取消同步;返回值为假则将继续同步。
接收和发送各种状态,这些状态采用数据包形式。由于在单个数据包中可以上载或下载多个表,因此,针对任何给定同步的 syncProgress 调用均可以跳过许多状态。
除了 SyncResult 方法,任何其它 UltraLiteJ API 方法都不应当在 syncProgress 调用期间被调用。