/// /// HybridOneCalendarSpec.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 OneCalendar HybridObject. * Implement this abstract class to create Kotlin-based instances of OneCalendar. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridOneCalendarSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun getPermissionStatus(): CalendarPermissionStatus @DoNotStrip @Keep abstract fun requestPermission(): Promise @DoNotStrip @Keep abstract fun list(startMs: Double, endMs: Double, limit: Double): Promise> @DoNotStrip @Keep abstract fun create(input: CalendarEventInput): Promise @DoNotStrip @Keep abstract fun update(identifier: String, originalStartMs: Double, changes: CalendarEventChanges): Promise @DoNotStrip @Keep abstract fun remove(identifier: String, startMs: Double): Promise @DoNotStrip @Keep abstract fun getRemindersPermissionStatus(): CalendarPermissionStatus @DoNotStrip @Keep abstract fun requestRemindersPermission(): Promise @DoNotStrip @Keep abstract fun listReminders(limit: Double, includeCompleted: Boolean): Promise> @DoNotStrip @Keep abstract fun createReminder(input: ReminderInput): Promise @DoNotStrip @Keep abstract fun setReminderCompleted(identifier: String, completed: Boolean): Promise @DoNotStrip @Keep abstract fun removeReminder(identifier: String): Promise // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject OneCalendar]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridOneCalendarSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridOneCalendarSpec::CxxPart::initHybrid(...) @FastNative external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridOneCalendarSpec" } }