createDomain

suspend fun createDomain(domainDescription: DomainDescription): Result<Domain>

Creates a new domain in the geodatabase. You can create a new domain in a mobile geodatabase that was created in ArcGIS Pro or using Geodatabase.create. The domain description can be a CodedValueDomainDescription or a RangeDomainDescription.

In terms of the domain description, the DomainDescription.name must not exist in the geodatabase and DomainDescription.fieldType must be valid. See DomainDescription, for additional constraints.

Return

A Result that returns a Domain if one was able to be created.

Since

200.1.0

Parameters

domainDescription

The description of the domain to create.