/// /// HybridOneFileSystemSpec.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.ArrayBuffer import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the OneFileSystem HybridObject. * Implement this abstract class to create Kotlin-based instances of OneFileSystem. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridOneFileSystemSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun getDirectories(): FileDirectories @DoNotStrip @Keep abstract fun getInfo(uri: String): Promise @DoNotStrip @Keep abstract fun readDirectory(uri: String): Promise> @DoNotStrip @Keep abstract fun makeDirectory(uri: String, intermediates: Boolean): Promise @DoNotStrip @Keep abstract fun writeFile(uri: String, contents: String, encoding: FileEncoding): Promise @DoNotStrip @Keep abstract fun copy(fromUri: String, toUri: String): Promise @DoNotStrip @Keep abstract fun move(fromUri: String, toUri: String): Promise @DoNotStrip @Keep abstract fun remove(uri: String): Promise @DoNotStrip @Keep abstract fun getBundleDirectory(): String @DoNotStrip @Keep abstract fun getDiskSpace(): DiskSpace @DoNotStrip @Keep abstract fun pathInfo(uri: String): PathStat @DoNotStrip @Keep abstract fun readText(uri: String): String @DoNotStrip @Keep abstract fun readTextAsync(uri: String): Promise @DoNotStrip @Keep abstract fun readData(uri: String): ArrayBuffer @DoNotStrip @Keep abstract fun readDataAsync(uri: String): Promise @DoNotStrip @Keep abstract fun readBase64(uri: String): String @DoNotStrip @Keep abstract fun readBase64Async(uri: String): Promise @DoNotStrip @Keep abstract fun writeText(uri: String, contents: String, encoding: FileEncoding, append: Boolean): Unit @DoNotStrip @Keep abstract fun writeTextAsync(uri: String, contents: String, encoding: FileEncoding, append: Boolean): Promise @DoNotStrip @Keep abstract fun writeData(uri: String, bytes: ArrayBuffer, append: Boolean): Unit @DoNotStrip @Keep abstract fun writeDataAsync(uri: String, bytes: ArrayBuffer, append: Boolean): Promise @DoNotStrip @Keep abstract fun fileDigest(uri: String, algorithm: String): Promise @DoNotStrip @Keep abstract fun createFileEntry(uri: String, intermediates: Boolean, overwrite: Boolean): Unit @DoNotStrip @Keep abstract fun createDirectoryEntry(uri: String, intermediates: Boolean, overwrite: Boolean, idempotent: Boolean): Unit @DoNotStrip @Keep abstract fun createFileInDirectory(dirUri: String, name: String): String @DoNotStrip @Keep abstract fun createSubdirectory(dirUri: String, name: String): String @DoNotStrip @Keep abstract fun deleteEntry(uri: String): Unit @DoNotStrip @Keep abstract fun renameEntry(uri: String, newName: String): String @DoNotStrip @Keep abstract fun copyEntry(fromUri: String, toUri: String, overwrite: Boolean): Unit @DoNotStrip @Keep abstract fun copyEntryAsync(fromUri: String, toUri: String, overwrite: Boolean): Promise @DoNotStrip @Keep abstract fun moveEntry(fromUri: String, toUri: String, overwrite: Boolean): Unit @DoNotStrip @Keep abstract fun moveEntryAsync(fromUri: String, toUri: String, overwrite: Boolean): Promise @DoNotStrip @Keep abstract fun listEntries(uri: String): Array @DoNotStrip @Keep abstract fun fileDetails(uri: String): DetailedFileInfo @DoNotStrip @Keep abstract fun directoryDetails(uri: String): DetailedDirectoryInfo @DoNotStrip @Keep abstract fun openFile(uri: String, mode: String): Double @DoNotStrip @Keep abstract fun closeFile(handle: Double): Unit @DoNotStrip @Keep abstract fun readHandle(handle: Double, length: Double): ArrayBuffer @DoNotStrip @Keep abstract fun readHandleAsync(handle: Double, length: Double): Promise @DoNotStrip @Keep abstract fun writeHandle(handle: Double, bytes: ArrayBuffer): Unit @DoNotStrip @Keep abstract fun writeHandleAsync(handle: Double, bytes: ArrayBuffer): Promise @DoNotStrip @Keep abstract fun getHandleOffset(handle: Double): Double @DoNotStrip @Keep abstract fun setHandleOffset(handle: Double, offset: Double): Unit @DoNotStrip @Keep abstract fun getHandleSize(handle: Double): Double // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject OneFileSystem]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridOneFileSystemSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridOneFileSystemSpec::CxxPart::initHybrid(...) @FastNative external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridOneFileSystemSpec" } }