Table of Contents

Method StatusForPriority

Namespace
PowerSync.Common.DB.Crud
Assembly
PowerSync.Common.dll

StatusForPriority(int)

Reports the sync status (a pair of HasSynced and LastSyncedAt fields) for a specific bucket priority level.

When buckets with different priorities are declared, PowerSync may choose to synchronize higher-priority buckets first. When a consistent view over all buckets for all priorities up until the given priority is reached, PowerSync makes data from those buckets available before lower-priority buckets have finished syncing.

This method returns the status for the requested priority or the next higher priority level that has status information available. This is because when PowerSync makes data for a given priority available, all buckets in higher-priorities are guaranteed to be consistent with that checkpoint. For example, if PowerSync just finished synchronizing buckets in priority level 3, calling this method with a priority of 1 may return information for priority level 3.

public SyncPriorityStatus StatusForPriority(int priority)

Parameters

priority int

Returns

SyncPriorityStatus