AppBroadcastTrigger Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro