ZyncUserManager

Manager class for handling user operations. Provides offline-first user data access and management capabilities.

Functions

Link copied to clipboard
suspend fun fetchUsers(sortAndFilter: ZyncUserSortAndFilter, page: Int, pageSize: Int): GetUsersResult

Fetch paginated list of users with sorting and filtering capabilities. Supports offline-first pattern with cache fallback for page 1.

Link copied to clipboard

Get all users from local storage. This includes users from both archive data and current user data.

Link copied to clipboard

Get the current user details. Returns the current logged-in user's details from local storage if available.

Link copied to clipboard
suspend fun getUserDetail(userUid: String, fetchType: ZyncFetchType = ZyncFetchType.NONE): GetUserDetailResult

Get detailed user information including contacts, role permissions, and custom fields. Supports offline-first pattern with background sync and force refresh capabilities.