Table of Contents

Method SyncStorageAsync

Namespace
PowerSync.Common.Attachments
Assembly
PowerSync.Common.dll

SyncStorageAsync()

Synchronizes all active attachments between local and remote storage. Uploads pending files, downloads newly referenced ones, applies pending deletes, and prunes archived rows.

public Task SyncStorageAsync()

Returns

Task

A task that completes when the sync pass has finished.

Remarks

This is called automatically at regular intervals when sync is started, but can also be called manually to await an immediate sync pass (e.g. before shutting down). For "fire and forget", use TriggerSync().