-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e614fbd
commit 270b424
Showing
6 changed files
with
49 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...ce-android-sdk/src/main/java/io/embrace/android/embracesdk/session/SessionSnapshotType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package io.embrace.android.embracesdk.session | ||
|
||
/** | ||
* Defines the states in which a session can end. | ||
*/ | ||
internal enum class SessionSnapshotType( | ||
|
||
/** | ||
* Whether the session ended cleanly (i.e. not because of a crash). | ||
*/ | ||
val endedCleanly: Boolean, | ||
|
||
/** | ||
* Whether the session process experienced a force quit/unexpected termination. | ||
*/ | ||
val forceQuit: Boolean, | ||
|
||
/** | ||
* Whether periodic caching of the session should stop or not. | ||
*/ | ||
val shouldStopCaching: Boolean | ||
) { | ||
|
||
/** | ||
* The end session happened in the normal way (i.e. process state changes or manual/timed end). | ||
*/ | ||
NORMAL_END(true, false, true), | ||
|
||
/** | ||
* The end session is being constructed so that it can be periodically cached. This avoids | ||
* the scenario of data loss in the event of NDK crashes. | ||
*/ | ||
PERIODIC_CACHE(false, true, false), | ||
|
||
/** | ||
* The end session is being constructed because of a JVM crash. | ||
*/ | ||
JVM_CRASH(false, false, true); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.