Skip to content

Commit

Permalink
Docs: Add user consent section (#184)
Browse files Browse the repository at this point in the history
* docs: add user consent section

* Update README.md

Co-authored-by: Saul Carlin <[email protected]>

---------

Co-authored-by: Saul Carlin <[email protected]>
  • Loading branch information
jhaaaa and saulmc authored Nov 1, 2023
1 parent 8646ca8 commit 0acdf65
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,18 @@ let decodedConversation = containerAgain.decode(with: client)
try await decodedConversation.send(text: "hi")
```

## Request and respect user consent

![Feature status](https://img.shields.io/badge/Feature_status-Alpha-orange)

The user consent feature enables your app to request and respect user consent preferences. With this feature, another blockchain account address registered on the XMTP network can have one of three consent preference values:

- Unknown
- Allowed
- Denied

To learn more, see [Request and respect user consent](https://xmtp.org/docs/build/user-consent).

## Handle different content types

All of the send functions support `SendOptions` as an optional parameter. The `contentType` option allows specifying different types of content other than the default simple string standard content type, which is identified with content type identifier `ContentTypeText`.
Expand Down

0 comments on commit 0acdf65

Please sign in to comment.