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