How interceptor execution order and logic works
masterAll added interceptor functions are called in order of priority (determined by zIndex).
- Combined Result: If any function returns
true, the combined result istrue, and the default back button process is NOT fired. The default process only fires if all functions returnfalse(ornull). stopDefaultButtonEvent: Each function receives a booleanstopDefaultButtonEventwhich indicates the current combined result from all previous functions in the chain. If a function wants to skip its logic because a previous interceptor already handled the event, it can checkif (stopDefaultButtonEvent) return false;.ifNotYetIntercepted: Alternatively, you can set theifNotYetInterceptedparameter totruewhen adding the function. This ensures the function is only called if all previous functions returnedfalse(i.e.,stopDefaultButtonEventisfalse).