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

import NitroModules

/// See ``HybridOneHapticsSpec``
public protocol HybridOneHapticsSpec_protocol: HybridObject {
  // Properties
  

  // Methods
  func selection() throws -> Void
  func impact(style: HapticImpact) throws -> Void
  func notification(type: HapticNotification) throws -> Void
  func performAndroidHaptics(type: AndroidHaptic) throws -> Void
}

public extension HybridOneHapticsSpec_protocol {
  /// Default implementation of ``HybridObject.toString``
  func toString() -> String {
    return "[HybridObject OneHaptics]"
  }
}

/// See ``HybridOneHapticsSpec``
open class HybridOneHapticsSpec_base {
  private weak var cxxWrapper: HybridOneHapticsSpec_cxx? = nil
  public init() { }
  public func getCxxWrapper() -> HybridOneHapticsSpec_cxx {
  #if DEBUG
    guard self is any HybridOneHapticsSpec else {
      fatalError("`self` is not a `HybridOneHapticsSpec`! Did you accidentally inherit from `HybridOneHapticsSpec_base` instead of `HybridOneHapticsSpec`?")
    }
  #endif
    if let cxxWrapper = self.cxxWrapper {
      return cxxWrapper
    } else {
      let cxxWrapper = HybridOneHapticsSpec_cxx(self as! any HybridOneHapticsSpec)
      self.cxxWrapper = cxxWrapper
      return cxxWrapper
    }
  }
}

/**
 * A Swift base-protocol representing the OneHaptics HybridObject.
 * Implement this protocol to create Swift-based instances of OneHaptics.
 * ```swift
 * class HybridOneHaptics : HybridOneHapticsSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridOneHapticsSpec = HybridOneHapticsSpec_protocol & HybridOneHapticsSpec_base
