共用方式為


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

發生于目前應用程式的目前廣播狀態變更時。

適用於