/// /// HybridEspProvToolkitSpec.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.espprovtoolkit 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 EspProvToolkit HybridObject. * Implement this abstract class to create Kotlin-based instances of EspProvToolkit. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridEspProvToolkitSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun searchForESPDevices(devicePrefix: String, transport: PTTransport, security: PTSecurity): Promise @DoNotStrip @Keep abstract fun stopSearchingForESPDevices(): Unit @DoNotStrip @Keep abstract fun createESPDevice(deviceName: String, transport: PTTransport, security: PTSecurity, proofOfPossession: String?, softAPPassword: String?, username: String?): Promise @DoNotStrip @Keep abstract fun getESPDevice(deviceName: String): PTDeviceResult @DoNotStrip @Keep abstract fun doesESPDeviceExist(deviceName: String): Boolean @DoNotStrip @Keep abstract fun scanWifiListOfESPDevice(deviceName: String): Promise @DoNotStrip @Keep abstract fun connectToESPDevice(deviceName: String): Promise @DoNotStrip @Keep abstract fun disconnectFromESPDevice(deviceName: String): PTResult @DoNotStrip @Keep abstract fun provisionESPDevice(deviceName: String, ssid: String, password: String): Promise @DoNotStrip @Keep abstract fun isESPDeviceSessionEstablished(deviceName: String): PTBooleanResult @DoNotStrip @Keep abstract fun sendDataToESPDevice(deviceName: String, path: String, data: String): Promise @DoNotStrip @Keep abstract fun getIPv4AddressOfESPDevice(deviceName: String): PTStringResult @DoNotStrip @Keep abstract fun getCurrentNetworkSSID(): Promise @DoNotStrip @Keep abstract fun requestLocationPermission(): Unit abstract fun registerLocationStatusCallback(callback: (level: PTLocationAccess) -> Promise): Double @DoNotStrip @Keep private fun registerLocationStatusCallback_cxx(callback: Func_std__shared_ptr_Promise_bool___PTLocationAccess): Double { val __result = registerLocationStatusCallback(callback) return __result } @DoNotStrip @Keep abstract fun removeLocationStatusCallback(id: Double): Boolean @DoNotStrip @Keep abstract fun getCurrentLocationStatus(): PTLocationAccess @DoNotStrip @Keep abstract fun nativeErrorToNumber(error: PTError): Double // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject EspProvToolkit]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridEspProvToolkitSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridEspProvToolkitSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridEspProvToolkitSpec" } }