Under User Settings > My Account > Status and activity you choose between Online, Idle, Do Not Disturb and Invisible, and you can set a custom status.
- Share the game I'm playing: shows "Playing …" on your profile. It works in the Windows app and can be turned off.
- Custom games: right below, on the same screen, there's a section to manage custom games.
- Your profile has Current activity (playing, watching, listening or competing, with details when the app provides them) and Recent activity. Recent game history is kept for up to 30 days.
- Tags like Trending (lots of people playing right now) and Streak (consecutive days playing) appear on game rows.
Third-party apps only set your activity if you authorize them. See Connected accounts and authorized apps.