mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-09 22:09:06 -05:00
add optional kind to content resolver
This commit is contained in:
parent
016dc7ef89
commit
5c4aa8f294
8
55.md
8
55.md
|
@ -332,7 +332,7 @@ If the user chose to always reject the event, signer application will return the
|
|||
```kotlin
|
||||
val result = context.contentResolver.query(
|
||||
Uri.parse("content://com.example.signer.NIP04_ENCRYPT"),
|
||||
listOf("$plainText", "${hex_pub_key}", "${logged_in_user_npub}"),
|
||||
listOf("$plainText", "${hex_pub_key}", "${logged_in_user_npub}", "${optional_event_kind}"),
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
@ -356,7 +356,7 @@ If the user chose to always reject the event, signer application will return the
|
|||
```kotlin
|
||||
val result = context.contentResolver.query(
|
||||
Uri.parse("content://com.example.signer.NIP44_ENCRYPT"),
|
||||
listOf("$plainText", "${hex_pub_key}", "${logged_in_user_npub}"),
|
||||
listOf("$plainText", "${hex_pub_key}", "${logged_in_user_npub}", "${optional_event_kind}"),
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
@ -380,7 +380,7 @@ If the user chose to always reject the event, signer application will return the
|
|||
```kotlin
|
||||
val result = context.contentResolver.query(
|
||||
Uri.parse("content://com.example.signer.NIP04_DECRYPT"),
|
||||
listOf("$encryptedText", "${hex_pub_key}", "${logged_in_user_npub}"),
|
||||
listOf("$encryptedText", "${hex_pub_key}", "${logged_in_user_npub}", "${optional_event_kind}"),
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
@ -404,7 +404,7 @@ If the user chose to always reject the event, signer application will return the
|
|||
```kotlin
|
||||
val result = context.contentResolver.query(
|
||||
Uri.parse("content://com.example.signer.NIP44_DECRYPT"),
|
||||
listOf("$encryptedText", "${hex_pub_key}", "${logged_in_user_npub}"),
|
||||
listOf("$encryptedText", "${hex_pub_key}", "${logged_in_user_npub}", "${optional_event_kind}"),
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
|
Loading…
Reference in New Issue
Block a user