# Enumerations

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

  ` Specifies the brush mode used for a stroke.

  #### Declaration

  Swift

      enum BrushMode: RawRepresentable, Sendable, Equatable, Hashable, BitwiseCopyable

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

  ` The delegate to run MediaPipe. If the delegate is not set, the default delegate CPU is used.

  #### Declaration

  Swift

      enum Delegate: RawRepresentable, Sendable, Equatable, Hashable, BitwiseCopyable

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

  ` The enum containing the 21 hand landmarks.

  #### Declaration

  Swift

      enum HandLandmark: RawRepresentable, Sendable, Equatable, Hashable, BitwiseCopyable

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

  ` Running mode of the MediaPipe task.

  #### Declaration

  Swift

      enum MPPCoreRunningMode: RawRepresentable, Sendable, Equatable, Hashable, BitwiseCopyable

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

  ` The underlying type of the segmentation mask.

  #### Declaration

  Swift

      enum MaskDataType: RawRepresentable, Sendable, Equatable, Hashable, BitwiseCopyable

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

  ` MediaPipe vision task running mode. A MediaPipe vision task can be run with three different modes: image, video and live stream.

  #### Declaration

  Swift

      enum RunningMode: RawRepresentable, Sendable, Equatable, Hashable, BitwiseCopyable

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

  ` This enum specifies error codes for errors thrown by iOS MediaPipe Task Library.

  #### Declaration

  Swift

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