account_manager library

Account Manager Plugin — cross-platform account management, authentication, and background sync via native platform APIs.

Classes

Account
A user account with associated metadata.
AccountAddedEvent
AccountEvent
Base class for account-related events emitted by AccountManagerPlugin.accountEvents.
AccountManagerPlugin
Main entry point for the Account Manager Plugin.
AccountRemovedEvent
AccountUpdatedEvent
AuthTokenExpiredEvent
PeriodicSyncConfig
Configuration for periodic sync scheduling
SyncCancelledEvent
SyncCompletedEvent
SyncConflictEvent
SyncEvent
Base class for sync-related events emitted by AccountManagerPlugin.syncEvents.
SyncProgress
Progress information for an ongoing sync.
SyncProgressEvent
SyncResult
Result of a sync operation.
SyncStartedEvent
SyncStats
Statistics from a completed sync operation.

Enums

SyncStatus
Current sync status

Exceptions / Errors

AccountAlreadyExistsException
Account with the same username+type already exists. Code range: 1000–1099.
AccountManagerException
Base exception for all account manager plugin errors.
AccountNotFoundException
No account found matching the given criteria. Code range: 1000–1099.
AuthenticationRequiredException
Re-authentication required (user interaction needed). Code range: 1100–1199.
CredentialException
Credential storage or retrieval failure. Code range: 1300–1399.
PluginNotConfiguredException
Plugin is not properly configured (missing manifest/plist entries). Code range: 1500–1599.
SyncConflictException
Sync conflict that could not be auto-resolved. Code range: 1200–1299.
SyncNetworkException
Network failure during sync. Code range: 1200–1299.
UnsupportedOperationException
Requested operation is not supported on this platform. Code range: 1500–1599.