package com.qmsplugin

import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.module.annotations.ReactModule

@ReactModule(name = QmsPluginModule.NAME)
class QmsPluginModule(reactContext: ReactApplicationContext) :
  NativeQmsPluginSpec(reactContext) {

  override fun getName(): String {
    return NAME
  }

  // Example method
  // See https://reactnative.dev/docs/native-modules-android
  override fun multiply(a: Double, b: Double): Double {
    return a * b
  }

  override fun sum(a: Double, b: Double): Double {
    return a + b
  }

  override fun showPluginUI() {
    QmsPluginViewManager.showPluginUI(reactApplicationContext)
  }
 
  companion object {
    const val NAME = "QmsPlugin"
  }
}
