ZyncTagsManager

Public API manager for tag operations in the Zync SDK.

This manager provides the public interface for tag-related functionality, including editing tags, deleting tags, and searching for tags by name.

Functions

Link copied to clipboard
suspend fun addTag(module: ZuperModule, tagName: String): AddTagResult

Add a new company tag to a specific module.

Link copied to clipboard
suspend fun deleteTag(tagUid: String): ZyncResult

Delete a company tag by marking it as deleted.

Link copied to clipboard
suspend fun editTag(tagUid: String, newTagName: String): ZyncResult

Edit an existing company tag name.

Link copied to clipboard
suspend fun getTags(module: ZuperModule, searchQuery: String? = null): MasterTagsResult

Get tags for any module with offline-first approach. Returns cached tags immediately, then triggers sync in background if needed.

Link copied to clipboard
suspend fun getTagsByName(module: ZuperModule, tagNames: List<String>): GetTagsByNameResult

Find tags by matching tag names within a specific module.

Link copied to clipboard

Observe tag changes for a specific module. Returns a flow that emits TagChangeEvent objects when tags are updated via delta sync.