> ## 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.

# 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)。</Note>

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

## 要求

**头文件：** 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 概览](/build/console-features/game-dvr/gamedvr-broadcast)\
[XAppCapture 成员](/reference/system/xappcapture/xappcapture_members)\
[XAppBroadcastShowUI](/reference/system/xappcapture/functions/xappbroadcastshowui)\
[XAppBroadcastGetStatus](/reference/system/xappcapture/functions/xappbroadcastgetstatus)


## Related topics

- [XAppBroadcastShowUI](/zh-CN/reference/system/xappcapture/functions/xappbroadcastshowui.md)
- [XAppBroadcastGetStatus](/zh-CN/reference/system/xappcapture/functions/xappbroadcastgetstatus.md)
- [XAppBroadcastStatus](/zh-CN/reference/system/xappcapture/structs/xappbroadcaststatus.md)
- [Game DVR 与广播](/zh-CN/build/console-features/game-dvr/gamedvr-broadcast.md)
- [XAppCapture](/zh-CN/reference/system/xappcapture/xappcapture_members.md)
