---
title: WKMediaCaptureState
framework: webkit
role: symbol
role_heading: Enumeration
path: webkit/wkmediacapturestate
---

# WKMediaCaptureState

An enumeration that describes whether a media device, like a camera or microphone, is currently capturing audio or video.

## Declaration

```swift
enum WKMediaCaptureState
```

## Topics

### Constants

- [WKMediaCaptureState.active](webkit/wkmediacapturestate/active.md)
- [WKMediaCaptureState.muted](webkit/wkmediacapturestate/muted.md)
- [WKMediaCaptureState.none](webkit/wkmediacapturestate/none.md)

### Initializers

- [init(rawValue:)](webkit/wkmediacapturestate/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Managing the microphone and camera

- [cameraCaptureState](webkit/wkwebview/cameracapturestate.md)
- [microphoneCaptureState](webkit/wkwebview/microphonecapturestate.md)
- [setCameraCaptureState(_:completionHandler:)](webkit/wkwebview/setcameracapturestate(_:completionhandler:).md)
- [setMicrophoneCaptureState(_:completionHandler:)](webkit/wkwebview/setmicrophonecapturestate(_:completionhandler:).md)
