Zync
Main entry point for the Zync SDK with integrated OfflineEngine support. This class provides access to offline-first functionality for the Zuper app.
OfflineEngine Integration: This SDK integrates the existing zuper-mobile-shared OfflineEngine to provide a unified initialization and session management experience during the phased migration to Zync. All OfflineEngine functionality remains unchanged.
Use this class for initialization and session management; access features via the managers below. For specific functionality, use the appropriate manager classes:
assets for asset data access
attachments for attachment operations
contracts for contract data access
jobs for job operations
notes for note operations
products for product data access
properties for property data access
organizations for organization data access
users for user data access
companies for company data access
customers for customer data access
serviceTasks for service task operations
tags for tag management operations
settings for user settings and preferences management
dataManager for monitoring and controlling data operations
offlineEngine for legacy OfflineEngine functionality
Properties
Get the asset manager for handling asset operations.
Get the attachment manager for handling attachment operations.
Get the company manager for handling company operations.
Get the contract manager for handling contract operations.
Get the customer manager for handling customer operations.
Get the data manager for monitoring and controlling data operations.
Check if offline mode is currently enabled. This is a quick synchronous check using cached state.
Get the job manager for handling job operations.
Get the notes manager for handling note operations.
Get the OfflineEngine instance for legacy offline functionality.
Get the organization manager for handling organization operations.
Get the product manager for handling product operations.
Get the property manager for handling property operations.
Get the service task manager for handling service task operations.
Get the settings manager for handling user settings and preferences.
Get the tags manager for handling tag operations.
Get the user manager for handling user operations.
Functions
Get the singleton instance of Zync. Will throw an exception if initialize() has not been called first.
Check if there is a valid user session.
Initialize the Zync SDK with OfflineEngine integration. This must be called before using any SDK functionality.
Handle session expiry scenarios. This should be called when the session becomes invalid (e.g., token expiry). This method preserves local data to avoid losing unsaved changes.
Update remote configuration for Zync SDK.