AppBroadcastPreview Class

Definition

Provides status information and access to the app broadcast preview.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

C#
[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 AppBroadcastPreview
Inheritance
Object AppBroadcastPreview
Attributes

Windows requirements

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

Remarks

This API may throw an error if the background service has shut down due to idle timeout.

Properties

ErrorCode

Gets the error code associated with the app broadcast preview.

PreviewState

Gets a value that indicates the state of the app broadcast preview.

PreviewStreamReader

Gets a stream reader for the app broadcast preview.

Methods

StopPreview()

Stop the app broadcast preview.

Events

PreviewStateChanged

Occurs when the state of the app broadcast preview changes.

Applies to

Product Versions
WinRT Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100