mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
feat(mobile): add plugin config to the Plugin class (#6763)
This commit is contained in:
committed by
GitHub
parent
41f49aeae6
commit
dfa407ffcb
@@ -15,6 +15,6 @@ class ExamplePlugin: Plugin {
|
||||
}
|
||||
|
||||
@_cdecl("init_plugin_sample")
|
||||
func initPlugin(name: SRString, webview: WKWebView?) {
|
||||
Tauri.registerPlugin(webview: webview, name: name.toString(), plugin: ExamplePlugin())
|
||||
func initPlugin() -> Plugin {
|
||||
return ExamplePlugin()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user