Kaspresso icon indicating copy to clipboard operation
Kaspresso copied to clipboard

Easy way to toggle multiple interceptors

Open Nikitae57 opened this issue 1 year ago • 0 comments

It would be cool to group interceptors by their functions so the user could do something like

disableInterceptors(InterceptorsGroups.SyStemDialogSafety)

instead of

dataBehaviorInterceptors.removeIf { it is SystemDialogSafetyProvider }
deviceBehaviorInterceptors.removeIf { it is SystemDialogSafetyProvider }
objectBehaviorInterceptors.removeIf { it is SystemDialogSafetyProvider }
webBehaviorInterceptors.removeIf { it is SystemDialogSafetyProvider }
viewBehaviorInterceptors.removeIf { it is SystemDialogSafetyProvider }

Nikitae57 avatar Apr 19 '24 09:04 Nikitae57