/// /// HybridOneUpdatesSpec.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.one 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.Promise import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the OneUpdates HybridObject. * Implement this abstract class to create Kotlin-based instances of OneUpdates. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridOneUpdatesSpec: HybridObject() { // Properties @get:DoNotStrip @get:Keep abstract val isEnabled: Boolean @get:DoNotStrip @get:Keep abstract val runtimeVersion: String? @get:DoNotStrip @get:Keep abstract val updateId: String? @get:DoNotStrip @get:Keep abstract val isEmbeddedLaunch: Boolean @get:DoNotStrip @get:Keep abstract val createdAt: String? @get:DoNotStrip @get:Keep abstract val manifestJson: String? // Methods @DoNotStrip @Keep abstract fun check(): Promise @DoNotStrip @Keep abstract fun fetch(): Promise @DoNotStrip @Keep abstract fun getStagedJson(): String? abstract fun addStagedListener(listener: (stagedJson: String?) -> Unit): () -> Unit @DoNotStrip @Keep private fun addStagedListener_cxx(listener: Func_void_std__optional_std__string_): Func_void { val __result = addStagedListener(listener) return Func_void_java(__result) } @DoNotStrip @Keep abstract fun reload(): Promise // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject OneUpdates]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridOneUpdatesSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridOneUpdatesSpec::CxxPart::initHybrid(...) @FastNative external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridOneUpdatesSpec" } }