withUniqueName

abstract fun withUniqueName(uniqueName: String): SyncOptions

Creates a new object or opens an existing one with provided unique name. This method is the same as withUniqueName with OPEN_OR_CREATE mode.

Return

Self for chaining.

Parameters

uniqueName

Unique name to find existing entity or to assign to new entity upon creation.


abstract fun withUniqueName(uniqueName: String, mode: Any): SyncOptions

Creates a new object or opens an existing one with provided unique name, also given a specific opening mode.

Return

Self for chaining.

Parameters

uniqueName

Unique name to find existing entity or to assign to new entity upon creation.

mode

Open mode, one of the constants OpenMode.