/// /// 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 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 abstract fun schedule(id: Double, delayMs: Double, kind: String, intervalMs: Double, group: String, driftPolicy: String, maxRuns: Double, correlationToken: Double, retryMaxAttempts: Double, retryInitialBackoffMs: Double, cancellationToken: String, tagMask: Double, policyProfile: String, callback: (id: Double) -> Unit): Double @DoNotStrip @Keep private fun schedule_cxx(id: Double, delayMs: Double, kind: String, intervalMs: Double, group: String, driftPolicy: String, maxRuns: Double, correlationToken: Double, retryMaxAttempts: Double, retryInitialBackoffMs: Double, cancellationToken: String, tagMask: Double, policyProfile: String, callback: Func_void_double): Double { val __result = schedule(id, delayMs, kind, intervalMs, group, driftPolicy, maxRuns, correlationToken, retryMaxAttempts, retryInitialBackoffMs, cancellationToken, tagMask, policyProfile, callback) return __result } @DoNotStrip @Keep abstract fun cancel(id: Double): Unit @DoNotStrip @Keep abstract fun pauseGroup(group: String): Double @DoNotStrip @Keep abstract fun resumeGroup(group: String): Double @DoNotStrip @Keep abstract fun cancelGroup(group: String): Double @DoNotStrip @Keep abstract fun listActiveTimerIds(): DoubleArray @DoNotStrip @Keep abstract fun getStatsJson(): String @DoNotStrip @Keep abstract fun getPersistWireJson(): String @DoNotStrip @Keep abstract fun restorePersistWireJson(wireJson: String): Unit abstract fun setTimeout(id: Double, duration: Double, callback: (id: Double) -> Unit): Double @DoNotStrip @Keep private fun setTimeout_cxx(id: Double, duration: Double, callback: Func_void_double): Double { val __result = setTimeout(id, duration, callback) return __result } @DoNotStrip @Keep abstract fun clearTimeout(id: Double): Unit abstract fun setInterval(id: Double, interval: Double, callback: (id: Double) -> Unit): Double @DoNotStrip @Keep private fun setInterval_cxx(id: Double, interval: Double, callback: Func_void_double): Double { val __result = setInterval(id, interval, callback) return __result } @DoNotStrip @Keep abstract fun clearInterval(id: Double): 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(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridNitroBackgroundTimerSpec" } }