Class MaskingConfiguration.Custom
-
- All Implemented Interfaces:
public final class MaskingConfiguration.Custom extends MaskingConfiguration
Customisable preset for masking configuration based on Safest preset.
-
-
Constructor Summary
Constructors Constructor Description MaskingConfiguration.Custom()
-
Method Summary
Modifier and Type Method Description final MaskingConfiguration.CustomaddMaskedIds(Set<Integer> ids)Adds View IDs that should be masked. final MaskingConfiguration.CustomremoveMaskedIds(Set<Integer> ids)Removes View IDs from masking. final MaskingConfiguration.CustomaddNonMaskedIds(Set<Integer> ids)Adds View IDs that should not be masked. final MaskingConfiguration.CustomremoveNonMaskedIds(Set<Integer> ids)Removes View IDs from not being masked. final MaskingConfiguration.CustomaddMaskedView(Class<out View> viewClass)Adds a View class that should be masked. final MaskingConfiguration.CustomaddMaskedViews(Set<Class<out View>> viewClasses)Adds some View classes that should be masked. final MaskingConfiguration.CustomremoveMaskedView(Class<out View> viewClass)Removes View class from being masked. final MaskingConfiguration.CustomremoveAllMaskedViews()Removes all View classes that were set to be masked. -
-
Method Detail
-
addMaskedIds
final MaskingConfiguration.Custom addMaskedIds(Set<Integer> ids)
Adds View IDs that should be masked.
- Parameters:
ids- View ids i.e R.id.
-
removeMaskedIds
final MaskingConfiguration.Custom removeMaskedIds(Set<Integer> ids)
Removes View IDs from masking. These Views will not be masked based on their IDs, but they may still be masked if other conditions are met.
- Parameters:
ids- View ids i.e R.id.
-
addNonMaskedIds
final MaskingConfiguration.Custom addNonMaskedIds(Set<Integer> ids)
Adds View IDs that should not be masked.
- Parameters:
ids- View ids i.e R.id.
-
removeNonMaskedIds
final MaskingConfiguration.Custom removeNonMaskedIds(Set<Integer> ids)
Removes View IDs from not being masked. Views may still be masked if other conditions are met.
- Parameters:
ids- View ids i.e R.id.
-
addMaskedView
final MaskingConfiguration.Custom addMaskedView(Class<out View> viewClass)
Adds a View class that should be masked.
- Parameters:
viewClass- View class.
-
addMaskedViews
final MaskingConfiguration.Custom addMaskedViews(Set<Class<out View>> viewClasses)
Adds some View classes that should be masked.
- Parameters:
viewClasses- set of View classes.
-
removeMaskedView
final MaskingConfiguration.Custom removeMaskedView(Class<out View> viewClass)
Removes View class from being masked. Views may still be masked if other conditions are met.
- Parameters:
viewClass- View class.
-
removeAllMaskedViews
final MaskingConfiguration.Custom removeAllMaskedViews()
Removes all View classes that were set to be masked. No View will be masked because of its type. Views may still be masked if other conditions are met.
-
-
-
-