Package-level declarations

Types

Link copied to clipboard
internal interface AvsSyncStateReporter

This class is responsible for reporting the current sync state to AVS. It is used to report the start and end of the incremental sync. Main reason for it is to let AVS know that the app is syncing and it should not send incoming call callbacks for those pending events

Link copied to clipboard
internal class AvsSyncStateReporterImpl(val callManager: <Error class: unknown class><CallManager>, val incrementalSyncRepository: IncrementalSyncRepository, kaliumLogger: <Error class: unknown class>) : AvsSyncStateReporter
Link copied to clipboard
interface DefaultWorker
Link copied to clipboard

Provide resources that will be displayed when Kalium needs to display a Foreground notification due to some work being done.

Link copied to clipboard
internal actual class GlobalWorkSchedulerImpl(coreLogic: CoreLogic) : GlobalWorkScheduler
Link copied to clipboard
class KaliumSyncException(message: String, val coreFailureCause: CoreFailure)
Link copied to clipboard
internal interface MissingMetadataUpdateManager

This class is responsible for checking if there are any users or conversations without metadata and if so, it will refresh them.

Link copied to clipboard
internal class MissingMetadataUpdateManagerImpl(incrementalSyncRepository: IncrementalSyncRepository, refreshUsersWithoutMetadata: <Error class: unknown class><RefreshUsersWithoutMetadataUseCase>, refreshConversationsWithoutMetadata: <Error class: unknown class><RefreshConversationsWithoutMetadataUseCase>, timestampKeyRepository: <Error class: unknown class><TimestampKeyRepository>, kaliumDispatcher: <Error class: unknown class> = KaliumDispatcherImpl) : MissingMetadataUpdateManager
Link copied to clipboard

Allows observing of SyncState. A value is always available immediately for new observers. Assumes that old SyncStates are not relevant anymore, so the available Flow has a limited buffer size and will drop the oldest values as there's no point in waiting for slow collectors. In case a slow collector is interested in receiving all values, it should add a buffer of its own.

Link copied to clipboard
internal class ObserveSyncStateUseCaseImpl(slowSyncRepository: SlowSyncRepository, incrementalSyncRepository: IncrementalSyncRepository) : ObserveSyncStateUseCase
Link copied to clipboard
internal class PendingMessagesSenderWorker(messageRepository: MessageRepository, messageSender: MessageSender, userId: <Error class: unknown class>) : DefaultWorker

This worker attempts to send all pending messages created by this user.

Link copied to clipboard
sealed class Result
Link copied to clipboard
class SetConnectionPolicyUseCase(incrementalSyncRepository: IncrementalSyncRepository)
Link copied to clipboard
internal class SyncExceptionHandler(onCancellation: () -> Unit, onFailure: (exception: CoreFailure) -> Unit)
Link copied to clipboard
interface SyncManager
Link copied to clipboard
internal class SyncManagerImpl(slowSyncRepository: SlowSyncRepository, incrementalSyncRepository: IncrementalSyncRepository, logger: <Error class: unknown class> = kaliumLogger) : SyncManager
Link copied to clipboard
internal class SyncManagerLogger(logger: <Error class: unknown class>, syncId: String, syncType: SyncType, syncStartedMoment: <Error class: unknown class>)

Logs the sync process by providing structured logs. It logs the sync process start and completion with the syncId as a unique identifier.

Link copied to clipboard
internal enum SyncStatus : Enum<SyncStatus>
Link copied to clipboard
internal enum SyncType : Enum<SyncType>
Link copied to clipboard
internal actual class UserSessionWorkSchedulerImpl(val userId: <Error class: unknown class>) : UserSessionWorkScheduler
Link copied to clipboard
class WrapperWorker(innerWorker: DefaultWorker, appContext: <Error class: unknown class>, params: <Error class: unknown class>, foregroundNotificationDetailsProvider: ForegroundNotificationDetailsProvider)
Link copied to clipboard
class WrapperWorkerFactory(coreLogic: CoreLogic, foregroundNotificationDetailsProvider: ForegroundNotificationDetailsProvider)

Functions

Link copied to clipboard
internal fun <Error class: unknown class>.provideNewSyncManagerLogger(syncType: SyncType, syncId: String = uuid4().toString(), syncStartedMoment: <Error class: unknown class> = Clock.System.now()): <Error class: unknown class>

Provides a new SyncManagerLogger instance with the given parameters.