/// /// HybridNitroBackgroundTimerSpec.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.backgroundtimer import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip import dalvik.annotation.optimization.FastNative import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the NitroBackgroundTimer HybridObject. * Implement this abstract class to create Kotlin-based instances of NitroBackgroundTimer. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridNitroBackgroundTimerSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun setTimeout(id: Double, duration: Double): Unit @DoNotStrip @Keep abstract fun clearTimeout(id: Double): Unit @DoNotStrip @Keep abstract fun setInterval(id: Double, interval: Double): Unit @DoNotStrip @Keep abstract fun clearInterval(id: Double): Unit @DoNotStrip @Keep abstract fun drainFiredTimers(): Array @DoNotStrip @Keep abstract fun startBackgroundMode(): Unit @DoNotStrip @Keep abstract fun stopBackgroundMode(): Unit @DoNotStrip @Keep abstract fun configure(configJson: String): Unit @DoNotStrip @Keep abstract fun disableForegroundService(): Unit // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject NitroBackgroundTimer]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridNitroBackgroundTimerSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridNitroBackgroundTimerSpec::CxxPart::initHybrid(...) @FastNative external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridNitroBackgroundTimerSpec" } }