/// /// HybridNitroResolverSpec.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.nitro_dns import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip import com.margelo.nitro.core.Promise import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the NitroResolver HybridObject. * Implement this abstract class to create Kotlin-based instances of NitroResolver. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridNitroResolverSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun cancel(): Unit @DoNotStrip @Keep abstract fun getServers(): String @DoNotStrip @Keep abstract fun setServers(servers: String): Unit @DoNotStrip @Keep abstract fun resolveipv4(hostname: String): Promise @DoNotStrip @Keep abstract fun resolveipv6(hostname: String): Promise @DoNotStrip @Keep abstract fun resolveMx(hostname: String): Promise @DoNotStrip @Keep abstract fun resolveTxt(hostname: String): Promise @DoNotStrip @Keep abstract fun resolveBase64Txt(hostname: String): Promise @DoNotStrip @Keep abstract fun resolveCname(hostname: String): Promise @DoNotStrip @Keep abstract fun resolveNs(hostname: String): Promise @DoNotStrip @Keep abstract fun resolveSoa(hostname: String): Promise @DoNotStrip @Keep abstract fun resolveSrv(hostname: String): Promise @DoNotStrip @Keep abstract fun resolveCaa(hostname: String): Promise @DoNotStrip @Keep abstract fun resolveNaptr(hostname: String): Promise @DoNotStrip @Keep abstract fun resolvePtr(hostname: String): Promise @DoNotStrip @Keep abstract fun resolveTlsa(hostname: String): Promise @DoNotStrip @Keep abstract fun resolveAny(hostname: String): Promise @DoNotStrip @Keep abstract fun reverse(ip: String): Promise @DoNotStrip @Keep abstract fun setLocalAddress(v4: String, v6: String): Unit @DoNotStrip @Keep abstract fun clearCache(): Unit // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject NitroResolver]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridNitroResolverSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridNitroResolverSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridNitroResolverSpec" } }