F

resolveFirstSync

Settles how this device and an existing cloud setup combine on the first sync after signing in, then turns automatic syncing on.

function resolveFirstSync(strategy: SyncStrategy): Promise<boolean>

Parameters

NameTypeDescription
strategySyncStrategy

merge keeps both, pull replaces this device's setup, push replaces the cloud's.

Returns

Promise<boolean>

Whether the sync succeeded.