/// /// HybridOmniEventMapSpec.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.HybridObject /** * A Kotlin class representing the OmniEventMap HybridObject. * Implement this abstract class to create Kotlin-based instances of OmniEventMap. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridOmniEventMapSpec: HybridObject() { // Properties // Methods abstract fun addStateListener(key: NumberProperty, cb: (value: Double) -> Unit): () -> Unit @DoNotStrip @Keep private fun addStateListener_cxx(key: NumberProperty, cb: Func_void_double): Func_void { val __result = addStateListener(key, cb) return Func_void_java(__result) } abstract fun addStateBoolListener(key: BoolProperty, cb: (value: Boolean) -> Unit): () -> Unit @DoNotStrip @Keep private fun addStateBoolListener_cxx(key: BoolProperty, cb: Func_void_bool): Func_void { val __result = addStateBoolListener(key, cb) return Func_void_java(__result) } abstract fun addPlayerStatusListener(cb: (value: PlayerStatus) -> Unit): () -> Unit @DoNotStrip @Keep private fun addPlayerStatusListener_cxx(cb: Func_void_PlayerStatus): Func_void { val __result = addPlayerStatusListener(cb) return Func_void_java(__result) } abstract fun addCastStatusListener(cb: (value: CastStatus) -> Unit): () -> Unit @DoNotStrip @Keep private fun addCastStatusListener_cxx(cb: Func_void_CastStatus): Func_void { val __result = addCastStatusListener(cb) return Func_void_java(__result) } abstract fun addSourceListener(cb: (value: Source?) -> Unit): () -> Unit @DoNotStrip @Keep private fun addSourceListener_cxx(cb: Func_void_std__optional_Source_): Func_void { val __result = addSourceListener(cb) return Func_void_java(__result) } abstract fun addTracksListener(key: TrackProperty, cb: (value: Array) -> Unit): () -> Unit @DoNotStrip @Keep private fun addTracksListener_cxx(key: TrackProperty, cb: Func_void_std__vector_Track_): Func_void { val __result = addTracksListener(key, cb) return Func_void_java(__result) } abstract fun addRenditionsListener(cb: (value: Array) -> Unit): () -> Unit @DoNotStrip @Keep private fun addRenditionsListener_cxx(cb: Func_void_std__vector_Rendition_): Func_void { val __result = addRenditionsListener(cb) return Func_void_java(__result) } abstract fun addOnEndListener(cb: () -> Unit): () -> Unit @DoNotStrip @Keep private fun addOnEndListener_cxx(cb: Func_void): Func_void { val __result = addOnEndListener(cb) return Func_void_java(__result) } abstract fun addOnPrevListener(cb: () -> Unit): () -> Unit @DoNotStrip @Keep private fun addOnPrevListener_cxx(cb: Func_void): Func_void { val __result = addOnPrevListener(cb) return Func_void_java(__result) } abstract fun addOnNextListener(cb: () -> Unit): () -> Unit @DoNotStrip @Keep private fun addOnNextListener_cxx(cb: Func_void): Func_void { val __result = addOnNextListener(cb) return Func_void_java(__result) } abstract fun addOnErrorListener(cb: (type: String, message: String) -> Unit): () -> Unit @DoNotStrip @Keep private fun addOnErrorListener_cxx(cb: Func_void_std__string_std__string): Func_void { val __result = addOnErrorListener(cb) return Func_void_java(__result) } abstract fun addOnAudioFocusChangeListener(cb: (status: String) -> Unit): () -> Unit @DoNotStrip @Keep private fun addOnAudioFocusChangeListener_cxx(cb: Func_void_std__string): Func_void { val __result = addOnAudioFocusChangeListener(cb) return Func_void_java(__result) } abstract fun addOnVideoTrackChangeListener(cb: (track: Track) -> Unit): () -> Unit @DoNotStrip @Keep private fun addOnVideoTrackChangeListener_cxx(cb: Func_void_Track): Func_void { val __result = addOnVideoTrackChangeListener(cb) return Func_void_java(__result) } abstract fun addOnAudioTrackChangeListener(cb: (track: Track) -> Unit): () -> Unit @DoNotStrip @Keep private fun addOnAudioTrackChangeListener_cxx(cb: Func_void_Track): Func_void { val __result = addOnAudioTrackChangeListener(cb) return Func_void_java(__result) } abstract fun addOnSubtitleChangeListener(cb: (track: Track?) -> Unit): () -> Unit @DoNotStrip @Keep private fun addOnSubtitleChangeListener_cxx(cb: Func_void_std__optional_Track_): Func_void { val __result = addOnSubtitleChangeListener(cb) return Func_void_java(__result) } abstract fun addOnRenditionChangeListener(cb: (rendition: Rendition) -> Unit): () -> Unit @DoNotStrip @Keep private fun addOnRenditionChangeListener_cxx(cb: Func_void_Rendition): Func_void { val __result = addOnRenditionChangeListener(cb) return Func_void_java(__result) } // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject OmniEventMap]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridOmniEventMapSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridOmniEventMapSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridOmniEventMapSpec" } }