/// /// HybridNetServerDriverSpec.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.net import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip import com.margelo.nitro.core.ArrayBuffer import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the NetServerDriver HybridObject. * Implement this abstract class to create Kotlin-based instances of NetServerDriver. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridNetServerDriverSpec: HybridObject() { // Properties abstract var onEvent: (event: Double, data: ArrayBuffer) -> Unit private var onEvent_cxx: Func_void_double_std__shared_ptr_ArrayBuffer_ @Keep @DoNotStrip get() { return Func_void_double_std__shared_ptr_ArrayBuffer__java(onEvent) } @Keep @DoNotStrip set(value) { onEvent = value } @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var maxConnections: Double // Methods @DoNotStrip @Keep abstract fun listen(port: Double, backlog: Double?, ipv6Only: Boolean?, reusePort: Boolean?): Unit @DoNotStrip @Keep abstract fun listenTLS(port: Double, secureContextId: Double, backlog: Double?, ipv6Only: Boolean?, reusePort: Boolean?): Unit @DoNotStrip @Keep abstract fun listenUnix(path: String, backlog: Double?): Unit @DoNotStrip @Keep abstract fun listenTLSUnix(path: String, secureContextId: Double, backlog: Double?): Unit @DoNotStrip @Keep abstract fun listenHandle(fd: Double, backlog: Double?): Unit @DoNotStrip @Keep abstract fun getLocalAddress(): String @DoNotStrip @Keep abstract fun close(): Unit // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject NetServerDriver]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridNetServerDriverSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridNetServerDriverSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridNetServerDriverSpec" } }