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 一个 SyncObserver.States 常量,表示同步的当前状态。
data 包含最新同步结果的 SyncResult 对象。
返回 true 会取消同步;返回 false 则会继续同步。
同步过程中会调用该方法。
接收和发送各种状态,这些状态采用数据包形式。由于在单个数据包中可以上载或下载多个表,因此,针对任何给定同步的该方法调用均可以跳过许多状态。
除了 SyncResult 方法,任何其它 UltraLiteJ API 方法都不应当在 syncProgress 调用期间被调用。