Skip to content

Commit

Permalink
nudge
Browse files Browse the repository at this point in the history
  • Loading branch information
matthova committed Mar 5, 2024
1 parent ec6f815 commit 104b4f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/common-patterns/layout-mode.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Application Layout Mode

There are three layout modes that an application can be in: focused, picture-in-picture (PIP), or grid mode. Activities can subscribe to the layout mode to determine when to optionally change their layouts to optimize for each layout mode. Discord clients support both `ACTIVITY_PIP_MODE_UPDATE` and `ACTIVITY_LAYOUT_MODE_UPDATE`. Here's an example using React:
There are three layout modes that an application can be in: focused, picture-in-picture (PIP), or grid mode. Activities can subscribe to the layout mode to determine when to optionally change their layouts to optimize for each layout mode. Discord clients can subscribe to the `ACTIVITY_LAYOUT_MODE_UPDATE` event to update their UI accordingly. Here's an example using React:

```javascript
import { EventPayloadData } from '@discord/embedded-app-sdk';
Expand Down

0 comments on commit 104b4f5

Please sign in to comment.