/// /// HybridOneClipboardSpec.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 OneClipboard HybridObject. * Implement this abstract class to create Kotlin-based instances of OneClipboard. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridOneClipboardSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun getString(options: ClipboardGetStringOptions): Promise @DoNotStrip @Keep abstract fun setString(text: String, options: ClipboardSetStringOptions): Promise @DoNotStrip @Keep abstract fun hasString(): Promise @DoNotStrip @Keep abstract fun getImage(options: ClipboardGetImageOptions): Promise @DoNotStrip @Keep abstract fun setImage(base64Image: String): Promise @DoNotStrip @Keep abstract fun hasImage(): Promise @DoNotStrip @Keep abstract fun getUrl(): Promise @DoNotStrip @Keep abstract fun setUrl(url: String): Promise @DoNotStrip @Keep abstract fun hasUrl(): Promise abstract fun setClipboardListener(listener: (contentTypes: Array) -> Unit): Unit @DoNotStrip @Keep private fun setClipboardListener_cxx(listener: Func_void_std__vector_std__string_): Unit { val __result = setClipboardListener(listener) return __result } @DoNotStrip @Keep abstract fun clearClipboardListener(): Unit // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject OneClipboard]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridOneClipboardSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridOneClipboardSpec::CxxPart::initHybrid(...) @FastNative external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridOneClipboardSpec" } }