/// /// HybridOneContactsSpec.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 OneContacts HybridObject. * Implement this abstract class to create Kotlin-based instances of OneContacts. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridOneContactsSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun getPermissionStatus(): ContactsPermissionStatus @DoNotStrip @Keep abstract fun requestPermission(): Promise @DoNotStrip @Keep abstract fun pickContact(): Promise @DoNotStrip @Keep abstract fun search(name: String, limit: Double): Promise> @DoNotStrip @Keep abstract fun create(input: ContactInput): Promise @DoNotStrip @Keep abstract fun update(identifier: String, changes: ContactChanges): Promise @DoNotStrip @Keep abstract fun remove(identifier: String): Promise // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject OneContacts]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridOneContactsSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridOneContactsSpec::CxxPart::initHybrid(...) @FastNative external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridOneContactsSpec" } }