///
/// FocusResponsiveness.swift
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///

/**
 * Represents the JS union `FocusResponsiveness`, backed by a C++ enum.
 */
public typealias FocusResponsiveness = margelo.nitro.camera.FocusResponsiveness

public extension FocusResponsiveness {
  /**
   * Get a FocusResponsiveness for the given String value, or
   * return `nil` if the given value was invalid/unknown.
   */
  init?(fromString string: String) {
    switch string {
      case "steady":
        self = .steady
      case "snappy":
        self = .snappy
      default:
        return nil
    }
  }

  /**
   * Get the String value this FocusResponsiveness represents.
   */
  var stringValue: String {
    switch self {
      case .steady:
        return "steady"
      case .snappy:
        return "snappy"
    }
  }
}
