AppCaptureServices AppCaptureServices AppCaptureServices 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 : sealed class AppCaptureServices : IAppCaptureServices
public sealed class AppCaptureServices : IAppCaptureServices
Public NotInheritable Class AppCaptureServices Implements IAppCaptureServices
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.15063.0)
API contract
Windows.Media.Capture.AppCaptureContract (introduced v4)
Capabilities
appCaptureSettings appCaptureServices

Properties

CanCapture CanCapture CanCapture CanCapture

Gets a value specifying whether app capture can be performed.

public : Platform::Boolean CanCapture { get; }
public bool CanCapture { get; }
Public ReadOnly Property CanCapture As bool
var bool = appCaptureServices.canCapture;
Value
Platform::Boolean bool bool bool
Additional features and requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.15063.0)
API contract
Windows.Media.Capture.AppCaptureContract (introduced v4)
Capabilities
appCaptureSettings

State State State 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.

public : AppCaptureState State { get; }
public AppCaptureState State { get; }
Public ReadOnly Property State As AppCaptureState
var appCaptureState = appCaptureServices.state;
Value
AppCaptureState AppCaptureState AppCaptureState AppCaptureState

A value specifying the current state of the app capture services.

Additional features and requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.15063.0)
API contract
Windows.Media.Capture.AppCaptureContract (introduced v4)
Capabilities
appCaptureSettings

Methods

Record() Record() Record() Record()

Initiates an app capture record operation.

public : AppCaptureRecordOperation Record()
public AppCaptureRecordOperation Record()
Public Function Record() As AppCaptureRecordOperation
var appCaptureRecordOperation = appCaptureServices.record();
Returns
Additional features and requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.15063.0)
API contract
Windows.Media.Capture.AppCaptureContract (introduced v4)
Capabilities
appCaptureSettings

RecordTimeSpan(DateTime, TimeSpan) RecordTimeSpan(DateTime, TimeSpan) RecordTimeSpan(DateTime, TimeSpan) RecordTimeSpan(DateTime, TimeSpan)

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

public : AppCaptureRecordOperation RecordTimeSpan(DateTime startTime, TimeSpan duration)
public AppCaptureRecordOperation RecordTimeSpan(DateTimeOffset startTime, TimeSpan duration)
Public Function RecordTimeSpan(startTime As DateTimeOffset, duration As TimeSpan) As AppCaptureRecordOperation
var appCaptureRecordOperation = appCaptureServices.recordTimeSpan(startTime, duration);
Parameters
startTime
DateTime DateTimeOffset DateTimeOffset DateTimeOffset

The time at which the app capture record operation is initiated.

duration
TimeSpan TimeSpan TimeSpan TimeSpan

The duration of the app capture record operation.

Returns
Additional features and requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.15063.0)
API contract
Windows.Media.Capture.AppCaptureContract (introduced v4)
Capabilities
appCaptureSettings