-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Showing
5 changed files
with
83 additions
and
12 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
37 changes: 37 additions & 0 deletions
37
...ultiplatform/src/commonMain/kotlin/io/sentry/kotlin/multiplatform/SessionReplayOptions.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,37 @@ | ||
package io.sentry.kotlin.multiplatform | ||
|
||
/** | ||
* Configuration options for session replay. | ||
*/ | ||
public data class SentryReplayOptions( | ||
/** | ||
* Indicates the percentage in which the replay for the session will be created. | ||
* Specifying 0 means never, 1.0 means always. The value needs to be >= 0.0 and <= 1.0. | ||
* | ||
* The default is null (disabled). | ||
*/ | ||
public var sessionSampleRate: Double? = null, | ||
|
||
/** | ||
* Indicates the percentage in which a 30 seconds replay will be sent with error events. | ||
* Specifying 0 means never, 1.0 means always. The value needs to be >= 0.0 and <= 1.0. | ||
* | ||
* The default is null (disabled). | ||
*/ | ||
public var onErrorSampleRate: Double? = null, | ||
|
||
/** | ||
* Redact all text content. Draws a rectangle of text bounds with text color on top. | ||
* | ||
* The default is true. | ||
*/ | ||
public var redactAllText: Boolean = true, | ||
|
||
/** | ||
* Redact all image content. Draws a rectangle of image bounds with image's dominant color on top. | ||
* | ||
* The default is true. | ||
*/ | ||
public var redactAllImages: Boolean = 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
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