> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameUiNotificationPositionHint

> XGameUiNotificationPositionHint

# XGameUiNotificationPositionHint

描述在当前游戏中显示 toast 通知的首选位置。

## 语法

```cpp theme={null}
enum class XGameUiNotificationPositionHint  : uint32_t  
{  
    BottomCenter = 0,  
    BottomLeft = 1,  
    BottomRight = 2,  
    TopCenter = 3,  
    TopLeft = 4,  
    TopRight = 5  
}  
```

## 常量

| 常量           | 说明                     |
| ------------ | ---------------------- |
| BottomCenter | 指示 toast 通知的首选位置是底部居中。 |
| BottomLeft   | 指示 toast 通知的首选位置是左下方。  |
| BottomRight  | 指示 toast 通知的首选位置是右下方。  |
| TopCenter    | 指示 toast 通知的首选位置是顶部居中。 |
| TopLeft      | 指示 toast 通知的首选位置是左上方。  |
| TopRight     | 指示 toast 通知的首选位置是右上方。  |

## 备注

通知位置是对操作系统显示 toast 通知位置的提示。在某些情况下，如果当前 UI 无法支持在该位置显示通知，系统可能会选择忽略此设置。

[XGameUiSetNotificationPositionHint](/reference/system/xgameui/functions/xgameuisetnotificationpositionhint) 的参数。

## 要求

**标头：** XGameUI.h

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[XGameUI](/reference/system/xgameui/xgameui_members)\
[XGameUiSetNotificationPositionHint](/reference/system/xgameui/functions/xgameuisetnotificationpositionhint)


## Related topics

- [XGameUiSetNotificationPositionHint](/zh-CN/reference/system/xgameui/functions/xgameuisetnotificationpositionhint.md)
- [XGameUI](/zh-CN/reference/system/xgameui/xgameui_members.md)
- [XGameUiTextEntryPositionHint](/zh-CN/reference/system/xgameui/enums/xgameuitextentrypositionhint.md)
- [XGameUiTextEntryUpdatePositionHint](/zh-CN/reference/system/xgameui/functions/xgameuitextentryupdatepositionhint.md)
- [XGameUiTextEntryOptions](/zh-CN/reference/system/xgameui/structs/xgameuitextentryoptions.md)
