/// /// HybridNativeDfuNitroSpec.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.co.zyke.dfu 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 NativeDfuNitro HybridObject. * Implement this abstract class to create Kotlin-based instances of NativeDfuNitro. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridNativeDfuNitroSpec: HybridObject() { // Properties // Methods abstract fun startDfu(options: DfuOptions, stateCallback: (state: DfuState) -> Unit, progressCallback: (part: Double, totalParts: Double, progress: Double, currentSpeed: Double, avgSpeed: Double) -> Unit, errorCallback: (error: DfuError, message: String) -> Unit): Unit @DoNotStrip @Keep private fun startDfu_cxx(options: DfuOptions, stateCallback: Func_void_DfuState, progressCallback: Func_void_double_double_double_double_double, errorCallback: Func_void_DfuError_std__string): Unit { val __result = startDfu(options, stateCallback, progressCallback, errorCallback) return __result } @DoNotStrip @Keep abstract fun pauseDfu(): Unit @DoNotStrip @Keep abstract fun resumeDfu(): Unit @DoNotStrip @Keep abstract fun abortDfu(): Unit // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject NativeDfuNitro]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridNativeDfuNitroSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridNativeDfuNitroSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridNativeDfuNitroSpec" } }