Xbox Game Bar Widget API Overview
Overview
The Xbox Game Bar API includes multiple objects that allow your application to communicate with Game Bar.
XboxGameBarWidget
This object must be created by the widget when the widget is activated by Game Bar. This object provides core IPC between Game Bar and the widget, context for future API calls, as well as methods, properties, and events for the widget to manage its state with Game Bar.
XboxGameBarWidgetActivatedEventArgs
This object includes additional information related to app activation.
XboxGameBarWidgetControl
This object allows you to send control commands to other widgets in your app package.
XboxGameBarWidgetWindowState
Represents a widget's current Window state.
XboxGameBarDisplayMode
Represents Game Bar's current display mode.
XboxGameBarWebAuthenticationBroker
This object allows you to use the WebAuthenticationBroker class to properly connect to OAuth providers through Game Bar.
XboxGameBarWidgetActivity
Start an activity to prevent Game Bar from idle shutdown. Use this to supporting long-running user activities, such as voice chat.
XboxGameBarAppTargetTracker
Track which app currently has foreground focus and get information about it.
XboxGameBarWidgetNotificationManager
Manage and post notifications through Game Bar.
XboxGameBarHotkeyWatcher
Register and watch for hotkey combination presses. Allows your widget to perform actions when the user presses your registered hotkey combinations.