/// /// HybridAlarmKitSpec.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.alarmkit import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip import com.margelo.nitro.core.Promise import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the AlarmKit HybridObject. * Implement this abstract class to create Kotlin-based instances of AlarmKit. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridAlarmKitSpec: HybridObject() { @DoNotStrip private var mHybridData: HybridData = initHybrid() init { super.updateNative(mHybridData) } override fun updateNative(hybridData: HybridData) { mHybridData = hybridData super.updateNative(hybridData) } // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject AlarmKit]" } // Properties @get:DoNotStrip @get:Keep abstract val isSupported: Boolean // Methods @DoNotStrip @Keep abstract fun getAuthorizationState(): Promise @DoNotStrip @Keep abstract fun requestAuthorization(): Promise @DoNotStrip @Keep abstract fun schedule(id: String, configJson: String): Promise @DoNotStrip @Keep abstract fun cancel(id: String): Promise @DoNotStrip @Keep abstract fun stop(id: String): Promise @DoNotStrip @Keep abstract fun pause(id: String): Promise @DoNotStrip @Keep abstract fun resume(id: String): Promise @DoNotStrip @Keep abstract fun countdown(id: String): Promise @DoNotStrip @Keep abstract fun getAlarms(): Promise abstract fun addAlarmsListener(callback: (alarmsJson: String) -> Unit): String @DoNotStrip @Keep private fun addAlarmsListener_cxx(callback: Func_void_std__string): String { val __result = addAlarmsListener(callback) return __result } @DoNotStrip @Keep abstract fun removeAlarmsListener(subscriptionId: String): Unit abstract fun addAuthorizationListener(callback: (state: String) -> Unit): String @DoNotStrip @Keep private fun addAuthorizationListener_cxx(callback: Func_void_std__string): String { val __result = addAuthorizationListener(callback) return __result } @DoNotStrip @Keep abstract fun removeAuthorizationListener(subscriptionId: String): Unit private external fun initHybrid(): HybridData companion object { protected const val TAG = "HybridAlarmKitSpec" } }