minServerGeneration property

int minServerGeneration

The minimum server generation number for the geodatabase.

Server generation numbers indicate the state of a geodatabase (or individual layers) with respect to changes which have been synced with the online service. The number increases as new changes from the online feature service are synced to the local geodatabase.

If the Geodatabase.syncModel is SyncModel.geodatabase, the value will indicate the server generation number for the entire geodatabase. If the Geodatabase.syncModel is SyncModel.layer, the value will be the lowest server generation number for all of the layers in the geodatabase. This property will be -1 if the geodatabase does not support sync (SyncModel.none).

This property will be -1 until the geodatabase is LoadStatus.loaded.

Note that this property is only required when using advanced workflows to manually apply pre-generated changes and not when performing a sync directly against the online service.

Implementation

int get minServerGeneration {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_Geodatabase_getMinServerGeneration(
        _handle, errorHandler);
  });
}