# Enumerations

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

  ` The type of correction.

  #### Declaration

  Swift

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

- `
  ### [Delegate](https://developers.google.com/edge/api/mediapipe/swift/text/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

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

  ` Running mode of the MediaPipe task.

  #### Declaration

  Swift

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

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

  ` The embedding task type, used to format input text for Gecko models.

  #### Declaration

  Swift

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

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

  ` The role of the text in the context of the embedding task for Gecko models.

  #### Declaration

  Swift

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

- `
  ### [TasksErrorCode](https://developers.google.com/edge/api/mediapipe/swift/text/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

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

  ` The mode of the text summarizer.

  #### Declaration

  Swift

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