/// /// HybridOnePhotoLibrarySpec.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 OnePhotoLibrary HybridObject. * Implement this abstract class to create Kotlin-based instances of OnePhotoLibrary. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridOnePhotoLibrarySpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun getAddPermissionStatus(): PhotoLibraryPermissionStatus @DoNotStrip @Keep abstract fun requestAddPermission(): Promise @DoNotStrip @Keep abstract fun getReadPermissionStatus(): PhotoLibraryPermissionStatus @DoNotStrip @Keep abstract fun requestReadPermission(): Promise @DoNotStrip @Keep abstract fun presentLimitedLibraryPicker(): Promise> @DoNotStrip @Keep abstract fun listAssets(offset: Double, limit: Double): Promise @DoNotStrip @Keep abstract fun getAsset(identifier: String): Promise @DoNotStrip @Keep abstract fun listAlbums(offset: Double, limit: Double): Promise @DoNotStrip @Keep abstract fun getAlbum(identifier: String): Promise @DoNotStrip @Keep abstract fun createAlbum(title: String): Promise @DoNotStrip @Keep abstract fun renameAlbum(identifier: String, title: String): Promise @DoNotStrip @Keep abstract fun listAlbumAssets(identifier: String, offset: Double, limit: Double): Promise @DoNotStrip @Keep abstract fun addAssetToAlbum(albumIdentifier: String, assetIdentifier: String): Promise @DoNotStrip @Keep abstract fun removeAssetFromAlbum(albumIdentifier: String, assetIdentifier: String): Promise @DoNotStrip @Keep abstract fun deleteAlbum(identifier: String): Promise @DoNotStrip @Keep abstract fun setFavorite(identifier: String, favorite: Boolean): Promise @DoNotStrip @Keep abstract fun deleteAsset(identifier: String): Promise @DoNotStrip @Keep abstract fun replaceImageContent(identifier: String, uri: String): Promise @DoNotStrip @Keep abstract fun replaceVideoContent(identifier: String, uri: String): Promise @DoNotStrip @Keep abstract fun revertAssetContent(identifier: String): Promise @DoNotStrip @Keep abstract fun exportOriginalAsset(identifier: String, allowNetwork: Boolean): Promise @DoNotStrip @Keep abstract fun exportCurrentImage(identifier: String, allowNetwork: Boolean): Promise @DoNotStrip @Keep abstract fun exportCurrentVideo(identifier: String, allowNetwork: Boolean): Promise @DoNotStrip @Keep abstract fun saveImage(uri: String): Promise @DoNotStrip @Keep abstract fun saveVideo(uri: String): Promise // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject OnePhotoLibrary]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridOnePhotoLibrarySpec): HybridObject.CxxPart(javaPart) { // C++ JHybridOnePhotoLibrarySpec::CxxPart::initHybrid(...) @FastNative external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridOnePhotoLibrarySpec" } }