GenerateLayerOption constructor
- int layerId = 0,
Creates a new generate layer option instance with a given layer id for use with generate geodatabase on the geodatabase sync task.
Creates a new instance with the supplied layer ID and the following values:
- GenerateLayerOption.queryOption = GenerateLayerQueryOption.useFilter
- GenerateLayerOption.useGeometry = true
- GenerateLayerOption.includeRelated = false
- GenerateLayerOption.whereClause = ""
Parameters:
layerId
— A layer id in the service.
Implementation
factory GenerateLayerOption({
int layerId = 0,
}) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GenerateLayerOption_createWithLayerId(
layerId,
errorHandler,
);
});
return GenerateLayerOption._withHandle(handle);
}