Jeeva
Jeeva

Reputation: 4825

Is it possible to set Proxy to GeckoView?

First time trying out GeckoView, I just wonder if is it possible to set an HTTP or SOCKS proxy to GeckoView? if yes can someone point me in the right direction?

@Composable
fun App() {
    AndroidView(
        factory = { context ->
            GeckoView(context).apply {
                val session = GeckoSession()
                session.settings.allowJavascript = true
                session.settings.useTrackingProtection = true
                val runtime = GeckoRuntime.create(context)
                session.open(runtime)
                setSession(session)

                session.loadUri("about:buildconfig")
            }
        },
        update = {}
    )
}

Upvotes: 2

Views: 299

Answers (0)

Related Questions