/// /// HybridOneScreenCaptureSpec.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.one import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip import dalvik.annotation.optimization.FastNative import com.margelo.nitro.core.Promise import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the OneScreenCapture HybridObject. * Implement this abstract class to create Kotlin-based instances of OneScreenCapture. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridOneScreenCaptureSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun getState(): Promise @DoNotStrip @Keep abstract fun captureWindow(): Promise @DoNotStrip @Keep abstract fun captureView(viewTag: Double): Promise abstract fun addStateListener(onChange: (state: ScreenCaptureState) -> Unit): () -> Unit @DoNotStrip @Keep private fun addStateListener_cxx(onChange: Func_void_ScreenCaptureState): Func_void { val __result = addStateListener(onChange) return Func_void_java(__result) } abstract fun addScreenshotListener(onScreenshot: (timestampMs: Double) -> Unit): () -> Unit @DoNotStrip @Keep private fun addScreenshotListener_cxx(onScreenshot: Func_void_double): Func_void { val __result = addScreenshotListener(onScreenshot) return Func_void_java(__result) } @DoNotStrip @Keep abstract fun prevent(): Promise @DoNotStrip @Keep abstract fun allow(): Promise @DoNotStrip @Keep abstract fun isPrevented(): Promise // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject OneScreenCapture]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridOneScreenCaptureSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridOneScreenCaptureSpec::CxxPart::initHybrid(...) @FastNative external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridOneScreenCaptureSpec" } }