/// /// HybridLiveActivityKitSpec.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.liveactivitykit 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 LiveActivityKit HybridObject. * Implement this abstract class to create Kotlin-based instances of LiveActivityKit. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridLiveActivityKitSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun areActivitiesEnabled(): Boolean @DoNotStrip @Keep abstract fun startActivity(config: NativeStartConfig): Promise @DoNotStrip @Keep abstract fun updateActivity(activityId: String, config: NativeUpdateConfig): Promise @DoNotStrip @Keep abstract fun endActivity(activityId: String, config: NativeEndConfig): Promise @DoNotStrip @Keep abstract fun endAllActivities(config: NativeEndConfig): Promise @DoNotStrip @Keep abstract fun getAllActivities(): Promise> @DoNotStrip @Keep abstract fun getActivityState(activityId: String): Promise @DoNotStrip @Keep abstract fun getPushToken(activityId: String): Promise @DoNotStrip @Keep abstract fun getPushToStartToken(): Promise abstract fun setOnActivityStateChange(callback: ((event: NativeActivityStateEvent) -> Unit)?): Unit @DoNotStrip @Keep private fun setOnActivityStateChange_cxx(callback: Func_void_NativeActivityStateEvent?): Unit { val __result = setOnActivityStateChange(callback?.let { it }) return __result } abstract fun setOnPushTokenChange(callback: ((event: NativePushTokenEvent) -> Unit)?): Unit @DoNotStrip @Keep private fun setOnPushTokenChange_cxx(callback: Func_void_NativePushTokenEvent?): Unit { val __result = setOnPushTokenChange(callback?.let { it }) return __result } abstract fun setOnPushToStartTokenChange(callback: ((token: String) -> Unit)?): Unit @DoNotStrip @Keep private fun setOnPushToStartTokenChange_cxx(callback: Func_void_std__string?): Unit { val __result = setOnPushToStartTokenChange(callback?.let { it }) return __result } abstract fun setOnEnablementChange(callback: ((enabled: Boolean) -> Unit)?): Unit @DoNotStrip @Keep private fun setOnEnablementChange_cxx(callback: Func_void_bool?): Unit { val __result = setOnEnablementChange(callback?.let { it }) return __result } // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject LiveActivityKit]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridLiveActivityKitSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridLiveActivityKitSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridLiveActivityKitSpec" } }