BlobModule

open class BlobModule : NativeBlobModuleSpec

Constructors

Link copied to clipboard
constructor(reactContext: ReactApplicationContext)

Properties

Link copied to clipboard
val METHOD_TYPE_ASYNC: String = "async"
Link copied to clipboard
val METHOD_TYPE_PROMISE: String = "promise"
Link copied to clipboard
val METHOD_TYPE_SYNC: String = "sync"
Link copied to clipboard
val NAME: String = "BlobModule"

Functions

Link copied to clipboard
Link copied to clipboard
open fun addWebSocketHandler(idDouble: Double)
Link copied to clipboard
Return true if you intend to override some other native module that was registered e.g.
Link copied to clipboard
open fun createFromParts(parts: ReadableArray, blobId: String)
Link copied to clipboard
Link copied to clipboard
open fun getLengthOfBlob(blobId: String): Long
Link copied to clipboard
open fun getName(): String
Link copied to clipboard
open fun initialize()
This method is called after ReactApplicationContext has been created.
Link copied to clipboard
open fun invalidate()
The CatalystInstance is going away with Venice.
abstract fun invalidate()

Called during the turn down process of ReactHost. This method is called before React Native is stopped. Override this method to clean up resources used by the TurboModule.

Link copied to clipboard
Allow NativeModule to clean up.
Link copied to clipboard
open fun release(blobId: String)
Link copied to clipboard
open fun remove(blobId: String)
Link copied to clipboard
open fun removeWebSocketHandler(idDouble: Double)
Link copied to clipboard
open fun resolve(uri: Uri): Array<Byte>
open fun resolve(blobId: String, offset: Int, size: Int): Array<Byte>
Link copied to clipboard
open fun sendOverSocket(blob: ReadableMap, idDouble: Double)
Link copied to clipboard
open fun store(data: Array<Byte>): String
open fun store(data: Array<Byte>, blobId: String)