我想在 GeckoView 中安装 Firefox 扩展我尝试了 docu() 中的指令。
我的代码:
val runtime = GeckoRuntime.create(this)
geckoSession.open(runtime)
geckoView.setSession(geckoSession)
runtime.getWebExtensionController().installBuiltIn("resource://android/assets/addonXY/")
问题是 getWebExtensionController() 没有 installBuiltIn() 功能。
有人可以帮我展示如何在 GeckView 中安装扩展