/// /// HybridNitroDnsSpec.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 NitroDns HybridObject. * Implement this abstract class to create Kotlin-based instances of NitroDns. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridNitroDnsSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun createResolver(config: String?): HybridNitroResolverSpec @DoNotStrip @Keep abstract fun getServers(): String @DoNotStrip @Keep abstract fun setServers(servers: String): Unit @DoNotStrip @Keep abstract fun lookup(hostname: String, family: Double): String @DoNotStrip @Keep abstract fun resolve4(hostname: String): Promise @DoNotStrip @Keep abstract fun resolve6(hostname: String): Promise @DoNotStrip @Keep abstract fun resolveMx(hostname: String): Promise @DoNotStrip @Keep abstract fun resolveTxt(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 lookupService(address: String, port: Double): Promise @DoNotStrip @Keep abstract fun setNativeInterceptionEnabled(enabled: Boolean): Unit @DoNotStrip @Keep abstract fun setVerbose(enabled: Boolean): Unit @DoNotStrip @Keep abstract fun clearCache(): Unit @DoNotStrip @Keep abstract fun setCacheSize(size: Double): Unit @DoNotStrip @Keep abstract fun setCachePolicy(policy: CachePolicy, staleTtl: Double): Unit // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject NitroDns]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridNitroDnsSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridNitroDnsSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridNitroDnsSpec" } }