Zync Route Manager
class ZyncRouteManager
Public API manager for route operations in the Zync SDK.
This manager provides the public interface for route-related functionality, following the offline-first approach where local data is returned immediately and background sync operations keep the data updated.
Usage:
val route = zync.routes.getRouteDetail("route_uid_123")Content copied to clipboard
Functions
Link copied to clipboard
Get detailed information for a specific route by its UID.
Link copied to clipboard
suspend fun getRoutesForDashboard(page: Int, pageSize: Int, fromDate: String, toDate: String, sendPolyline: Boolean): GetDashboardRoutesResult
Get dashboard routes with intelligent cache-first strategy for single-date queries.
Link copied to clipboard
Observe dashboard route changes for real-time UI updates.
Link copied to clipboard
Observes route changes for a specific route with real-time updates.