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

# XAppBroadcastIsAppBroadcasting

> XAppBroadcastIsAppBroadcasting

# XAppBroadcastIsAppBroadcasting

确定应用当前是否正在广播。

## 语法

```cpp theme={null}
bool XAppBroadcastIsAppBroadcasting(  
)  
```

### 参数

### 返回值

类型：bool

如果应用正在广播，则返回 true。

## 备注

> [!NOTE]
>
> 此函数不能在时间敏感线程上安全调用。有关详细信息，请参阅 [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)。

调用此函数以确定当前应用是否正在广播。可在使用 [XAppBroadcastShowUI](https://docs.xbox.com/zh-CN/reference/system/xappcapture/functions/xappbroadcastshowui.md) 向用户显示广播 UI 之后调用。如果你预期应用应当处于广播状态但事实并非如此，则可能需要检查广播状态以查看是否存在阻碍问题。可通过调用 [XAppBroadcastGetStatus](https://docs.xbox.com/zh-CN/reference/system/xappcapture/functions/xappbroadcastgetstatus.md) 来完成此操作。

## 要求

**头文件：** XAppCapture.h

**库：** xgameruntime.lib

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

## 概念性文档

* [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## 另请参阅

[GameDVR 概览](https://docs.xbox.com/zh-CN/build/console-features/game-dvr/gamedvr-broadcast.md)\
[XAppCapture 成员](https://docs.xbox.com/zh-CN/reference/system/xappcapture/xappcapture_members.md)\
[XAppBroadcastShowUI](https://docs.xbox.com/zh-CN/reference/system/xappcapture/functions/xappbroadcastshowui.md)\
[XAppBroadcastGetStatus](https://docs.xbox.com/zh-CN/reference/system/xappcapture/functions/xappbroadcastgetstatus.md)


## Related topics

- [XAppBroadcastShowUI](https://docs.xbox.com/zh-CN/reference/system/xappcapture/functions/xappbroadcastshowui.md)
- [XAppBroadcastGetStatus](https://docs.xbox.com/zh-CN/reference/system/xappcapture/functions/xappbroadcastgetstatus.md)
- [XAppBroadcastStatus](https://docs.xbox.com/zh-CN/reference/system/xappcapture/structs/xappbroadcaststatus.md)
- [Game DVR 与广播](https://docs.xbox.com/zh-CN/build/console-features/game-dvr/gamedvr-broadcast.md)
- [XAppCapture（API 内容）](https://docs.xbox.com/zh-CN/reference/system/xappcapture/xappcapture_members.md)
