mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-06-30 18:41:52 +02:00
Add intent flags
This commit is contained in:
6
55.md
6
55.md
@ -72,6 +72,12 @@ Set the Signer package name:
|
||||
intent.`package` = "com.example.signer"
|
||||
```
|
||||
|
||||
If you are sending multiple intents without awaiting you can add some intent flags to sign all events without opening multiple times the signer
|
||||
|
||||
```kotlin
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP)
|
||||
```
|
||||
|
||||
Send the Intent:
|
||||
|
||||
```kotlin
|
||||
|
Reference in New Issue
Block a user