|
| 1 | +namespace Sentry; |
| 2 | + |
| 3 | +/// <summary> |
| 4 | +/// Native session replay options. |
| 5 | +/// </summary> |
| 6 | +public class NativeSentryReplayOptions |
| 7 | +{ |
| 8 | + /// <summary> |
| 9 | + /// Gets or sets the percentage of a session |
| 10 | + /// replay to be sent. The value should be between 0.0 |
| 11 | + /// and 1.0. Default is 0. |
| 12 | + /// </summary> |
| 13 | + /// <remarks> |
| 14 | + /// <see href="https://docs.sentry.io/product/explore/session-replay/mobile/">sentry.io</see> |
| 15 | + /// </remarks> |
| 16 | + public float SessionSampleRate { get; set; } |
| 17 | + |
| 18 | + /// <summary> |
| 19 | + /// Gets or sets the percentage of an error |
| 20 | + /// replay to be sent. The value should be between 0.0 |
| 21 | + /// and 1.0. Default is 0. |
| 22 | + /// </summary> |
| 23 | + /// <remarks> |
| 24 | + /// <see href="https://docs.sentry.io/product/explore/session-replay/mobile/">sentry.io</see> |
| 25 | + /// </remarks> |
| 26 | + public float OnErrorSampleRate { get; set; } |
| 27 | + |
| 28 | + /// <summary> |
| 29 | + /// Gets or sets a value determining whether |
| 30 | + /// text should be masked during replays. |
| 31 | + /// </summary> |
| 32 | + /// <remarks> |
| 33 | + /// <see href="https://docs.sentry.io/product/explore/session-replay/mobile/">sentry.io</see> |
| 34 | + /// </remarks> |
| 35 | + public bool MaskAllText { get; set; } = true; |
| 36 | + |
| 37 | + /// <summary> |
| 38 | + /// Gets or sets a value determining whether |
| 39 | + /// images should be masked during replays. |
| 40 | + /// </summary> |
| 41 | + /// <remarks> |
| 42 | + /// <see href="https://docs.sentry.io/product/explore/session-replay/mobile/">sentry.io</see> |
| 43 | + /// </remarks> |
| 44 | + public bool MaskAllImages { get; set; } = true; |
| 45 | + |
| 46 | + /// <summary> |
| 47 | + /// Gets or sets the quality of session replays. |
| 48 | + /// Higher quality means finer details |
| 49 | + /// but a greater performance impact. |
| 50 | + /// Default is <see cref="SentryReplayQuality.Medium"/>. |
| 51 | + /// </summary> |
| 52 | + /// <remarks> |
| 53 | + /// <see href="https://docs.sentry.io/platforms/android/session-replay/performance-overhead/">Android</see> |
| 54 | + /// <see href="https://docs.sentry.io/platforms/apple/guides/ios/session-replay/performance-overhead/">iOS</see> |
| 55 | + /// </remarks> |
| 56 | + public SentryReplayQuality Quality { get; set; } = SentryReplayQuality.Medium; |
| 57 | +} |
0 commit comments