The package database class provides methods for querying the synchronized state and the last synchronization time of a certain synchronization group.
/// Determines if the synchronization group was synchronized public static boolean isSynchronized(java.lang.String synchronizationGroup) /// Retrieves the last synchronization time of the synchronization group public static java.util.Date getLastSynchronizationTime(java.lang.String synchronizationGroup)