/// /// HybridOneNotificationsSpec.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 OneNotifications HybridObject. * Implement this abstract class to create Kotlin-based instances of OneNotifications. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridOneNotificationsSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun getPermissions(): Promise @DoNotStrip @Keep abstract fun requestPermissions(options: NativePermissionRequest): Promise @DoNotStrip @Keep abstract fun getBadgeCount(): Promise @DoNotStrip @Keep abstract fun setBadgeCount(count: Double): Promise @DoNotStrip @Keep abstract fun setNotificationCategory(category: NativeNotificationCategory): Promise @DoNotStrip @Keep abstract fun getNotificationCategories(): Promise> @DoNotStrip @Keep abstract fun deleteNotificationCategory(identifier: String): Promise @DoNotStrip @Keep abstract fun setNotificationChannel(channelId: String, channel: NativeChannelInput): Promise @DoNotStrip @Keep abstract fun getNotificationChannel(channelId: String): Promise @DoNotStrip @Keep abstract fun getNotificationChannels(): Promise> @DoNotStrip @Keep abstract fun deleteNotificationChannel(channelId: String): Promise @DoNotStrip @Keep abstract fun scheduleNotification(request: NativeScheduleInput): Promise @DoNotStrip @Keep abstract fun cancelScheduledNotification(identifier: String): Promise @DoNotStrip @Keep abstract fun cancelAllScheduledNotifications(): Promise @DoNotStrip @Keep abstract fun getAllScheduledNotifications(): Promise> @DoNotStrip @Keep abstract fun getPresentedNotifications(): Promise> @DoNotStrip @Keep abstract fun dismissNotification(identifier: String): Promise @DoNotStrip @Keep abstract fun dismissAllNotifications(): Promise @DoNotStrip @Keep abstract fun getDevicePushToken(): Promise abstract fun setListeners(onReceived: (requestId: String, notification: NativeNotification) -> Unit, onResponse: (response: NativeNotificationResponse) -> Unit, onPushToken: (token: NativePushToken) -> Unit): Unit @DoNotStrip @Keep private fun setListeners_cxx(onReceived: Func_void_std__string_NativeNotification, onResponse: Func_void_NativeNotificationResponse, onPushToken: Func_void_NativePushToken): Unit { val __result = setListeners(onReceived, onResponse, onPushToken) return __result } @DoNotStrip @Keep abstract fun presentNotification(requestId: String, behavior: NotificationBehavior): Unit @DoNotStrip @Keep abstract fun getLastNotificationResponse(): NativeNotificationResponse? @DoNotStrip @Keep abstract fun clearLastNotificationResponse(): Unit // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject OneNotifications]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridOneNotificationsSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridOneNotificationsSpec::CxxPart::initHybrid(...) @FastNative external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridOneNotificationsSpec" } }