AppBroadcastTrigger Class

Definition

Represents an event that triggers a background task to run when an application starts gameplay broadcasting.

public ref class AppBroadcastTrigger sealed : IBackgroundTrigger
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Background.IAppBroadcastTriggerFactory, 65536, "Windows.Media.Capture.AppBroadcastContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Media.Capture.AppBroadcastContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppBroadcastTrigger final : IBackgroundTrigger
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Background.IAppBroadcastTriggerFactory), 65536, "Windows.Media.Capture.AppBroadcastContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Media.Capture.AppBroadcastContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppBroadcastTrigger : IBackgroundTrigger
function AppBroadcastTrigger(providerKey)
Public NotInheritable Class AppBroadcastTrigger
Implements IBackgroundTrigger
Inheritance
Object Platform::Object IInspectable AppBroadcastTrigger
Attributes
Implements

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.15063.0)
API contract
Windows.Media.Capture.AppBroadcastContract (introduced in v1.0)

Remarks

Important

Only first-party applications should use this class.

The background task must be declared in the manifest before the registration can be successful. An instance of this class is passed to the background task in its Run method.

Constructors

AppBroadcastTrigger(String)

Constructs an AppBroadcastTrigger with the name of the provider that will be doing the gameplay broadcasting.

Properties

ProviderInfo

Provides information about the application that is broadcasting gameplay.

Applies to