/// /// HybridOmniPlayerFactorySpec.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.omni 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 OmniPlayerFactory HybridObject. * Implement this abstract class to create Kotlin-based instances of OmniPlayerFactory. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridOmniPlayerFactorySpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun createPlayer(backend: PlayerBackend?, cast: CastOptions?): HybridOmniPlayerSpec abstract fun addCastLoadListener(cb: (request: CastLoadRequest) -> Promise>): () -> Unit @DoNotStrip @Keep private fun addCastLoadListener_cxx(cb: Func_std__shared_ptr_Promise_std__shared_ptr_Promise_void_____CastLoadRequest): Func_void { val __result = addCastLoadListener(cb) return Func_void_java(__result) } // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject OmniPlayerFactory]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridOmniPlayerFactorySpec): HybridObject.CxxPart(javaPart) { // C++ JHybridOmniPlayerFactorySpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridOmniPlayerFactorySpec" } }