# Enumerations

The following declarations are available globally.
- `
  ### [AudioRunningMode](https://developers.google.com/edge/api/mediapipe/swift/common/Enums/AudioRunningMode.md.txt)

  ` Execution modes for MediaPipe Audio Tasks.

  #### Declaration

  Swift

      @frozen enum AudioRunningMode: Sendable, Equatable, Hashable, CaseIterable, RawRepresentable, BitwiseCopyable

- `
  ### [CosineSimilarity](https://developers.google.com/edge/api/mediapipe/swift/common/Enums/CosineSimilarity.md.txt)

  ` Utility namespace for computing cosine similarity between `Embedding` values.

  #### Declaration

  Swift

      enum CosineSimilarity

- `
  ### [Delegate](https://developers.google.com/edge/api/mediapipe/swift/common/Enums/Delegate.md.txt)

  ` Hardware acceleration delegates supported by MediaPipe Tasks.

  #### Declaration

  Swift

      enum Delegate: Sendable, Equatable, Hashable, RawRepresentable

- `
  ### [MPImageSourceType](https://developers.google.com/edge/api/mediapipe/swift/common/Enums/MPImageSourceType.md.txt)

  ` Underlying source representation of an `MPImage`.

  #### Declaration

  Swift

      @frozen enum MPImageSourceType: Sendable, Equatable, Hashable, CaseIterable, RawRepresentable, BitwiseCopyable

- `
  ### [MaskDataType](https://developers.google.com/edge/api/mediapipe/swift/common/Enums/MaskDataType.md.txt)

  ` Underlying element type of a MediaPipe segmentation mask.

  #### Declaration

  Swift

      @frozen enum MaskDataType: Sendable, Equatable, Hashable, CaseIterable, RawRepresentable, BitwiseCopyable

- `
  ### [RegionOfInterest.Kind](https://developers.google.com/edge/api/mediapipe/swift/common/Enums/RegionOfInterest/Kind.md.txt)

  ` Mutually exclusive representations of a segmentation region of interest.

  #### Declaration

  Swift

      @frozen enum Kind: Sendable, Equatable, Hashable

- `
  ### [TaskPart](https://developers.google.com/edge/api/mediapipe/swift/common/Enums/TaskPart.md.txt)

  ` Single modality item within a multimodal content sequence.

  #### Declaration

  Swift

      enum TaskPart: Sendable, Equatable, Hashable

- `
  ### [TasksErrorCode](https://developers.google.com/edge/api/mediapipe/swift/common/Enums/TasksErrorCode.md.txt)

  ` Error codes thrown by the MediaPipe Tasks library.

  #### Declaration

  Swift

      enum TasksErrorCode: Sendable, Equatable, Hashable, CaseIterable, RawRepresentable

- `
  ### [VisionRunningMode](https://developers.google.com/edge/api/mediapipe/swift/common/Enums/VisionRunningMode.md.txt)

  ` Execution modes for MediaPipe Vision Tasks.

  #### Declaration

  Swift

      @frozen enum VisionRunningMode: Sendable, Equatable, Hashable, CaseIterable, RawRepresentable, BitwiseCopyable