Class PrivateContentStyle
java.lang.Object
com.unblu.sdk.module.mobilecobrowsing.PrivateContentStyle
Controls how private views and private areas are hidden before the screen is sent to the agent.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PrivateContentStyleblur(float radius) Blurs private content instead of covering it.static PrivateContentStylefill()Covers private content with a filled placeholder.floatbooleanisBlur()
-
Method Details
-
fill
Covers private content with a filled placeholder. This is the default.- Returns:
- the fill style
-
blur
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:
trueif private content is blurred,falseif it's covered with a filled placeholder
-
getBlurRadius
public float getBlurRadius()- Returns:
- the blur radius in dp, or 0 for
fill()
-