-
public final class InterceptionHookPair of a screen-name pattern and its evaluator. Suspend functions because evaluators may call network / Firestore (e.g. fetch a server-driven screen config before deciding whether to intercept).
-
-
Field Summary
Fields Modifier and Type Field Description private final StringscreenNameprivate final SuspendFunction1<String, InterceptionResult>evaluate
-
Constructor Summary
Constructors Constructor Description InterceptionHook(String screenName, SuspendFunction1<String, InterceptionResult> evaluate)
-
Method Summary
Modifier and Type Method Description final StringgetScreenName()final SuspendFunction1<String, InterceptionResult>getEvaluate()-
-
Constructor Detail
-
InterceptionHook
InterceptionHook(String screenName, SuspendFunction1<String, InterceptionResult> evaluate)
-
-
Method Detail
-
getScreenName
final String getScreenName()
-
getEvaluate
final SuspendFunction1<String, InterceptionResult> getEvaluate()
-
-
-
-