UserSessionScopeProviderImpl
internal actual open class UserSessionScopeProviderImpl : UserSessionScopeProviderCommon, UserSessionScopeProvider
internal actual open class UserSessionScopeProviderImpl : UserSessionScopeProviderCommon, UserSessionScopeProvider
internal actual open class UserSessionScopeProviderImpl : UserSessionScopeProviderCommon, UserSessionScopeProvider
Constructors
Link copied to clipboard
constructor(authenticationScopeProvider: AuthenticationScopeProvider, rootPathsProvider: RootPathsProvider, appContext: Context, globalScope: GlobalKaliumScope, globalDatabaseBuilder: GlobalDatabaseBuilder, kaliumConfigs: KaliumConfigs, globalPreferences: GlobalPrefProvider, globalCallManager: GlobalCallManager, userStorageProvider: UserStorageProvider, userAuthenticatedNetworkProvider: UserAuthenticatedNetworkProvider, networkStateObserver: NetworkStateObserver, logoutCallback: LogoutCallback, userAgent: String, syncShutdownCoordinator: SyncShutdownCoordinator)
constructor(authenticationScopeProvider: AuthenticationScopeProvider, rootPathsProvider: RootPathsProvider, globalScope: GlobalKaliumScope, kaliumConfigs: KaliumConfigs, globalPreferences: GlobalPrefProvider, globalCallManager: GlobalCallManager, globalDatabaseBuilder: GlobalDatabaseBuilder, userStorageProvider: UserStorageProvider, userAuthenticatedNetworkProvider: UserAuthenticatedNetworkProvider, networkStateObserver: NetworkStateObserver, logoutCallback: LogoutCallback, userAgent: String, keychainConfig: ApplePersistenceConfig, syncShutdownCoordinator: SyncShutdownCoordinator)
constructor(authenticationScopeProvider: AuthenticationScopeProvider, rootPathsProvider: RootPathsProvider, globalScope: GlobalKaliumScope, kaliumConfigs: KaliumConfigs, globalPreferences: GlobalPrefProvider, globalCallManager: GlobalCallManager, globalDatabaseBuilder: GlobalDatabaseBuilder, userStorageProvider: UserStorageProvider, userAuthenticatedNetworkProvider: UserAuthenticatedNetworkProvider, networkStateObserver: NetworkStateObserver, logoutCallback: LogoutCallback, userAgent: String, useInMemoryDatabase: Boolean, syncShutdownCoordinator: SyncShutdownCoordinator)
Functions
Link copied to clipboard
Link copied to clipboard
The host must quiesce account use cases and global account collectors before requesting release.
Link copied to clipboard
open suspend override fun deleteSession(userId: UserId, sessionRepository: SessionRepository): Either<StorageFailure, Unit>
actual open suspend override fun deleteSession(userId: UserId, sessionRepository: SessionRepository): Either<StorageFailure, Unit>
expect open suspend override fun deleteSession(userId: UserId, sessionRepository: SessionRepository): Either<StorageFailure, Unit>
open suspend override fun deleteSession(userId: UserId, sessionRepository: SessionRepository): Either<StorageFailure, Unit>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
actual open suspend override fun invalidateReceiving(userId: UserId, originatingScope: CoroutineScope)
Readiness is durable: revoke it before a change the extension cannot detect, such as registration.
expect open suspend override fun invalidateReceiving(userId: UserId, originatingScope: CoroutineScope)
Link copied to clipboard
The accounts this process still holds the lock of, with what keeps each: hold reasons, or nothing.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun prepareReceiving(userId: UserId, originatingScope: CoroutineScope): Either<CoreFailure, Unit>
actual open suspend override fun prepareReceiving(userId: UserId, originatingScope: CoroutineScope): Either<CoreFailure, Unit>
expect open suspend override fun prepareReceiving(userId: UserId, originatingScope: CoroutineScope): Either<CoreFailure, Unit>
open suspend override fun prepareReceiving(userId: UserId, originatingScope: CoroutineScope): Either<CoreFailure, Unit>
Link copied to clipboard
Releases every account no hold keeps, all at once: one slow drain must not keep the other accounts' locks. Call after setForeground false. Returns whether every release succeeded.
Link copied to clipboard
In the foreground accounts open on first use; in the background only held accounts may take their lock.
Link copied to clipboard
open suspend override fun storeSession(session: StoreSessionParam, sessionRepository: SessionRepository): Either<StorageFailure, Unit>
actual open suspend override fun storeSession(session: StoreSessionParam, sessionRepository: SessionRepository): Either<StorageFailure, Unit>
The host must quiesce public operations and collectors before replacing a cached session.
expect open suspend override fun storeSession(session: StoreSessionParam, sessionRepository: SessionRepository): Either<StorageFailure, Unit>
open suspend override fun storeSession(session: StoreSessionParam, sessionRepository: SessionRepository): Either<StorageFailure, Unit>