mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-01 11:13:40 +03:00
feat(core): forward onNewIntent
event to android plugins (#7436)
This commit is contained in:
parent
3b98141aa2
commit
a5752db985
5
.changes/android-on-new-intent.md
Normal file
5
.changes/android-on-new-intent.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": 'patch:enhance'
|
||||
---
|
||||
|
||||
Listen to `onNewIntent` and forward it to registered plugins.
|
@ -7,6 +7,7 @@
|
||||
package {{package}}
|
||||
|
||||
import android.os.Bundle
|
||||
import android.content.Intent
|
||||
import app.tauri.plugin.PluginManager
|
||||
|
||||
abstract class TauriActivity : WryActivity() {
|
||||
@ -18,4 +19,9 @@ abstract class TauriActivity : WryActivity() {
|
||||
pluginManager.onNewIntent(intent)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onNewIntent(intent: Intent) {
|
||||
super.onNewIntent(intent)
|
||||
pluginManager.onNewIntent(intent)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user