MediaCapturePauseBehavior 枚举

定义

定义通过调用 PauseAsyncPauseRecordAsync 暂停媒体捕获时的行为。

public enum class MediaCapturePauseBehavior
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class MediaCapturePauseBehavior
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum MediaCapturePauseBehavior
var value = Windows.Media.Devices.MediaCapturePauseBehavior.retainHardwareResources
Public Enum MediaCapturePauseBehavior
继承
MediaCapturePauseBehavior
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

字段

ReleaseHardwareResources 1

暂停捕获时释放硬件资源。

RetainHardwareResources 0

调用应用在暂停捕获时保持对硬件资源(如相机)的控制。

适用于