JavascriptInterfaceFactory

typealias JavascriptInterfaceFactory = (resource: Link) -> Any?

Factory for a JavascriptInterface which will be injected in the web views.

Return null if you don't want to inject the interface for the given resource.