Object SensitiveViewManager
-
- All Implemented Interfaces:
public class SensitiveViewManager
-
-
Field Summary
Fields Modifier and Type Field Description private Set<AutoMaskedView>autoMaskedViewspublic final static SensitiveViewManagerINSTANCE
-
Method Summary
Modifier and Type Method Description final BooleanaddSensitiveView(View view)final BooleanremoveSensitiveView(View view)final BooleanaddSafeView(View view)final BooleanremoveSafeView(View view)final UnitaddSensitiveClass(Class<?> aClass)final UnitremoveSensitiveClass(Class<?> aClass)final BooleanhasText(SemanticsConfiguration $self)final BooleanhasImage(SemanticsConfiguration $self)final BooleanhasWebView(SemanticsConfiguration $self)final BooleanisSensitiveView(SemanticsConfiguration $self)final SubviewSummaryprocessSubviews(View view)Processes subviews to detect sensitive content that needs masking. final UnitmaskSensitiveViews(View of, Canvas inCanvas, Set<Rect> bounds)final Set<AutoMaskedView>getAutoMaskedViews()final UnitsetAutoMaskedViews(Set<AutoMaskedView> autoMaskedViews)-
-
Method Detail
-
addSensitiveView
final Boolean addSensitiveView(View view)
-
removeSensitiveView
final Boolean removeSensitiveView(View view)
-
addSafeView
final Boolean addSafeView(View view)
-
removeSafeView
final Boolean removeSafeView(View view)
-
addSensitiveClass
final Unit addSensitiveClass(Class<?> aClass)
-
removeSensitiveClass
final Unit removeSensitiveClass(Class<?> aClass)
-
hasText
final Boolean hasText(SemanticsConfiguration $self)
-
hasImage
final Boolean hasImage(SemanticsConfiguration $self)
-
hasWebView
final Boolean hasWebView(SemanticsConfiguration $self)
-
isSensitiveView
final Boolean isSensitiveView(SemanticsConfiguration $self)
-
processSubviews
final SubviewSummary processSubviews(View view)
Processes subviews to detect sensitive content that needs masking. Returns a SubviewSummary containing masking info and a snapshot of bounds for comparison.
- Parameters:
view- The root view to process
-
getAutoMaskedViews
final Set<AutoMaskedView> getAutoMaskedViews()
-
setAutoMaskedViews
final Unit setAutoMaskedViews(Set<AutoMaskedView> autoMaskedViews)
-
-
-
-