isAppRedirectAllowed

abstract fun isAppRedirectAllowed(app: String, isAllowed: (Boolean) -> Unit)

Is called whenever the current app tries to redirect to another specified app. The client app can then decide, if this should be allowed (set isAllowed to true) or if the client intercepts the app (set isAllowed to false), e.g. native apps with a map probably don't want to show the fuel station finder, but show their own map instead.

Parameters

app

The app the current app is redirecting to, e.g. fuel-station-finder, fueling, pay, or legal

isAllowed

Call this function to specify whether to redirect or not (defaults to true)