Share via


AppCaptureServices Class

Definition

Manages the state of app captures.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

public ref class AppCaptureServices sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Media.Capture.AppCaptureContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppCaptureServices final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Media.Capture.AppCaptureContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppCaptureServices
Public NotInheritable Class AppCaptureServices
Inheritance
Object Platform::Object IInspectable AppCaptureServices
Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.15063.0)
API contract
Windows.Media.Capture.AppCaptureContract (introduced in v4.0)
App capabilities
appCaptureServices appCaptureSettings

Remarks

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

Properties

CanCapture

Gets a value specifying whether app capture can be performed.

State

Gets a value specifying the current state of the app capture services.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

Methods

Record()

Initiates an app capture record operation.

RecordTimeSpan(DateTime, TimeSpan)

Initiates an app capture record operation beginning at the specified time, for the specified duration.

Applies to