AppBroadcastingMonitor 类

定义

允许应用确定它当前是否正在广播,并在应用启动或停止广播时接收事件。

public ref class AppBroadcastingMonitor sealed
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Media.AppBroadcasting.AppBroadcastingContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Media.AppBroadcasting.AppBroadcastingContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppBroadcastingMonitor final
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Media.AppBroadcasting.AppBroadcastingContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Media.AppBroadcasting.AppBroadcastingContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppBroadcastingMonitor
function AppBroadcastingMonitor()
Public NotInheritable Class AppBroadcastingMonitor
继承
Object Platform::Object IInspectable AppBroadcastingMonitor
属性

Windows 要求

设备系列
Windows Desktop Extension SDK (在 10.0.16299.0 中引入)
API contract
Windows.Media.AppBroadcasting.AppBroadcastingContract (在 v1.0 中引入)

注解

应用可以使用此类来显示或隐藏指示应用当前正在广播的 UI 元素。

构造函数

AppBroadcastingMonitor()

初始化 AppBroadcastingMonitor 类的新实例。

属性

IsCurrentAppBroadcasting

获取一个值,该值指示当前应用当前是否正在广播。

事件

IsCurrentAppBroadcastingChanged

当当前应用的当前广播状态更改时发生。

适用于