-
public final class PostHogSessionReplayConfig
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanmaskAllTextInputsprivate BooleanmaskAllImagesprivate BooleancaptureLogcatprivate PostHogDrawableConverterdrawableConverterprivate Booleanscreenshotprivate LongdebouncerDelayMs
-
Constructor Summary
Constructors Constructor Description PostHogSessionReplayConfig(Boolean maskAllTextInputs, Boolean maskAllImages, Boolean captureLogcat, PostHogDrawableConverter drawableConverter, Boolean screenshot, Long debouncerDelayMs)
-
Method Summary
Modifier and Type Method Description final BooleangetMaskAllTextInputs()Enable masking of all text input fields This is ignored if the screenshot option is enabled Defaults to true final UnitsetMaskAllTextInputs(Boolean maskAllTextInputs)Enable masking of all text input fields This is ignored if the screenshot option is enabled Defaults to true final BooleangetMaskAllImages()Enable masking of all images to a placeholder This is ignored if the screenshot option is enabled Defaults to true final UnitsetMaskAllImages(Boolean maskAllImages)Enable masking of all images to a placeholder This is ignored if the screenshot option is enabled Defaults to true final BooleangetCaptureLogcat()Enable capturing of logcat as console events Defaults to true final UnitsetCaptureLogcat(Boolean captureLogcat)Enable capturing of logcat as console events Defaults to true final PostHogDrawableConvertergetDrawableConverter()Converts custom Drawable to Bitmap By default PostHog tries to convert the Drawable to Bitmap, the supported types are BitmapDrawable, ColorDrawable, GradientDrawable, InsetDrawable, LayerDrawable, RippleDrawable final UnitsetDrawableConverter(PostHogDrawableConverter drawableConverter)Converts custom Drawable to Bitmap By default PostHog tries to convert the Drawable to Bitmap, the supported types are BitmapDrawable, ColorDrawable, GradientDrawable, InsetDrawable, LayerDrawable, RippleDrawable final BooleangetScreenshot()By default Session replay will capture all the views on the screen as a wireframe, By enabling this option, PostHog will capture the screenshot of the screen. final UnitsetScreenshot(Boolean screenshot)By default Session replay will capture all the views on the screen as a wireframe, By enabling this option, PostHog will capture the screenshot of the screen. final LonggetDebouncerDelayMs()Deboucer delay used to reduce the number of snapshots captured and reduce performance impact This is used for capturing the view as a wireframe or screenshot The lower the number more snapshots will be captured but higher the performance impact Defaults to 500ms final UnitsetDebouncerDelayMs(Long debouncerDelayMs)Deboucer delay used to reduce the number of snapshots captured and reduce performance impact This is used for capturing the view as a wireframe or screenshot The lower the number more snapshots will be captured but higher the performance impact Defaults to 500ms -
-
Method Detail
-
getMaskAllTextInputs
final Boolean getMaskAllTextInputs()
Enable masking of all text input fields This is ignored if the screenshot option is enabled Defaults to true
-
setMaskAllTextInputs
final Unit setMaskAllTextInputs(Boolean maskAllTextInputs)
Enable masking of all text input fields This is ignored if the screenshot option is enabled Defaults to true
-
getMaskAllImages
final Boolean getMaskAllImages()
Enable masking of all images to a placeholder This is ignored if the screenshot option is enabled Defaults to true
-
setMaskAllImages
final Unit setMaskAllImages(Boolean maskAllImages)
Enable masking of all images to a placeholder This is ignored if the screenshot option is enabled Defaults to true
-
getCaptureLogcat
final Boolean getCaptureLogcat()
Enable capturing of logcat as console events Defaults to true
-
setCaptureLogcat
final Unit setCaptureLogcat(Boolean captureLogcat)
Enable capturing of logcat as console events Defaults to true
-
getDrawableConverter
final PostHogDrawableConverter getDrawableConverter()
Converts custom Drawable to Bitmap By default PostHog tries to convert the Drawable to Bitmap, the supported types are BitmapDrawable, ColorDrawable, GradientDrawable, InsetDrawable, LayerDrawable, RippleDrawable
-
setDrawableConverter
final Unit setDrawableConverter(PostHogDrawableConverter drawableConverter)
Converts custom Drawable to Bitmap By default PostHog tries to convert the Drawable to Bitmap, the supported types are BitmapDrawable, ColorDrawable, GradientDrawable, InsetDrawable, LayerDrawable, RippleDrawable
-
getScreenshot
final Boolean getScreenshot()
By default Session replay will capture all the views on the screen as a wireframe, By enabling this option, PostHog will capture the screenshot of the screen. The screenshot may contain sensitive information, use with caution.
-
setScreenshot
final Unit setScreenshot(Boolean screenshot)
By default Session replay will capture all the views on the screen as a wireframe, By enabling this option, PostHog will capture the screenshot of the screen. The screenshot may contain sensitive information, use with caution.
-
getDebouncerDelayMs
final Long getDebouncerDelayMs()
Deboucer delay used to reduce the number of snapshots captured and reduce performance impact This is used for capturing the view as a wireframe or screenshot The lower the number more snapshots will be captured but higher the performance impact Defaults to 500ms
-
setDebouncerDelayMs
final Unit setDebouncerDelayMs(Long debouncerDelayMs)
Deboucer delay used to reduce the number of snapshots captured and reduce performance impact This is used for capturing the view as a wireframe or screenshot The lower the number more snapshots will be captured but higher the performance impact Defaults to 500ms
-
-
-
-