SessionReplayConfiguration.Builder - DataDog/dd-sdk-android GitHub Wiki

class Builder(@FloatRange(from = 0.0, to = 100.0)sampleRate: Float)

A Builder class for a SessionReplayConfiguration.

Parameters

sampleRate must be a value between 0 and 100. A value of 0 means no session will be recorded, 100 means all sessions will be recorded.

Constructors

Builder

constructor(@FloatRange(from = 0.0, to = 100.0)sampleRate: Float)

Parameters
sampleRate must be a value between 0 and 100. A value of 0 means no session will be recorded, 100 means all sessions will be recorded.

Functions

addExtensionSupport

fun addExtensionSupport(extensionSupport: ExtensionSupport): SessionReplayConfiguration.Builder

Adds an extension support implementation. This is mostly used when you want to provide different behaviour of the Session Replay when using other Android UI frameworks than the default ones.

See also
ExtensionSupport.getLegacyCustomViewMappers

build

fun build(): SessionReplayConfiguration

Builds a SessionReplayConfiguration based on the current state of this Builder.

setPrivacy

fun setPrivacy(privacy: SessionReplayPrivacy): SessionReplayConfiguration.Builder

Sets the privacy rule for the Session Replay feature. If not specified all the elements will be masked by default (MASK).

See also
SessionReplayPrivacy.ALLOW
SessionReplayPrivacy.MASK
SessionReplayPrivacy.MASK_USER_INPUT

useCustomEndpoint

fun useCustomEndpoint(endpoint: String): SessionReplayConfiguration.Builder

Let the Session Replay target a custom server.