android-components / mozilla.components.feature.session / SessionUseCases / CrashRecoveryUseCase

CrashRecoveryUseCase

class CrashRecoveryUseCase (source)

Tries to recover from a crash by restoring the last know state.

Executing this use case on a Session will clear the Session.crashed flag.

Functions

Name Summary
invoke fun invoke(session: Session): Boolean
Tries to recover the state of the provided Session.fun invoke(): Boolean
Tries to recover the state of all crashed Sessions (with Session.crashed flag set).fun invoke(sessions: List<Session>): Boolean
Tries to recover the state of all sessions.