AppCaptureState 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 the state of app capture.
public ref class AppCaptureState 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 AppCaptureState 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 AppCaptureState
Public NotInheritable Class AppCaptureState
- 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 |
appCaptureSettings
|
Remarks
This API may throw an error if the background service has shut down due to idle timeout.
Properties
IsHistoricalCaptureEnabled |
Gets a value specifying whether historical app capture is enabled. |
IsTargetRunning |
Gets a value indicating whether the app capture target is currently running. |
MicrophoneCaptureError |
Gets an error code associated with microphone capture for app capture. |
MicrophoneCaptureState |
Gets the current microphone capture state. |
ShouldCaptureMicrophone |
Gets a value specifying whether the microphone should be captured. |
Methods
RestartMicrophoneCapture() |
Restarts microphone capture for app capture. |
Events
CaptureTargetClosed |
Occurs when the capture target is closed. |
MicrophoneCaptureStateChanged |
Occurs when the state of microphone capture for app capture changes. |