exportDelta

suspend fun exportDelta(geodatabase: Geodatabase, outputPath: String): Result<Boolean>

Generates an upload delta geodatabase file containing all the changes since the last sync. A delta geodatabase contains the changes that have occurred since a mobile replica com.arcgismaps.data.Geodatabase was last-synchronized with the feature service. See Synchronize Replica for an overview of the delta files used in synchronization. An "upload" delta geodatabase contains the local edits, performed on the user's device, to be sent to the originating feature service.

When you run this task, any local edits in the com.arcgismaps.data.Geodatabase will be exported to the specified output path. The output path should include the full path and file name (ending in ".geodatabase") for the export.

The delta file created by this method is not sent to the server and has no impact on any subsequent sync job. You can call this method repeatedly without affecting the state of the local geodatabase.

The task returned by this method has a boolean result that indicates whether or not a delta geodatabase was created.

You should not execute more than one sync on a particular geodatabase at the same time. This includes any operations that export or import deltas from the local com.arcgismaps.data.Geodatabase, which are:

Return

A task that generates a geodatabase delta and has an element type of bool. This bool indicates whether a delta was generated or not.

Since

200.1.0

Parameters

geodatabase

The geodatabase to generate a delta from.

outputPath

The path and filename to save the generated delta to.

See also