Class PrivateContentStyle

java.lang.Object
com.unblu.sdk.module.mobilecobrowsing.PrivateContentStyle

public final class PrivateContentStyle extends Object
Controls how private views and private areas are hidden before the screen is sent to the agent.
See Also:
  • Method Details

    • fill

      @NonNull public static PrivateContentStyle fill()
      Covers private content with a filled placeholder. This is the default.
      Returns:
      the fill style
    • blur

      @NonNull public static PrivateContentStyle blur(float radius)
      Blurs private content instead of covering it. If blurring fails, the filled placeholder is used instead, so private content is never sent unmasked.

      Choose a radius large enough that the content can't be read.

      Parameters:
      radius - blur radius in dp. Larger means stronger blur. Must be greater than 0.
      Returns:
      the blur style
      Throws:
      IllegalArgumentException - if the radius isn't a finite number greater than 0
    • isBlur

      public boolean isBlur()
      Returns:
      true if private content is blurred, false if it's covered with a filled placeholder
    • getBlurRadius

      public float getBlurRadius()
      Returns:
      the blur radius in dp, or 0 for fill()