-
- All Implemented Interfaces:
-
com.facebook.react.bridge.NativeModule
,com.facebook.react.bridge.ReactModuleWithSpec
,com.facebook.react.turbomodule.core.interfaces.TurboModule
public class BlobModule extends NativeBlobModuleSpec
-
-
Constructor Summary
Constructors Constructor Description BlobModule(ReactApplicationContext reactContext)
-
Method Summary
Modifier and Type Method Description void
initialize()
This is called at the end of createCatalystInstance afterthe CatalystInstance has been created, in order to initialize NativeModules that require theCatalystInstance or JS modules. String
getName()
Map<String, Object>
getTypedExportedConstants()
String
store(Array<byte> data)
void
store(Array<byte> data, String blobId)
void
remove(String blobId)
Array<byte>
resolve(Uri uri)
Array<byte>
resolve(String blobId, int offset, int size)
Array<byte>
resolve(ReadableMap blob)
void
addNetworkingHandler()
void
addWebSocketHandler(double idDouble)
void
removeWebSocketHandler(double idDouble)
void
sendOverSocket(ReadableMap blob, double idDouble)
void
createFromParts(ReadableArray parts, String blobId)
void
release(String blobId)
-
Methods inherited from class com.facebook.fbreact.specs.NativeBlobModuleSpec
addWebSocketHandler, createFromParts, getConstants, removeWebSocketHandler, sendOverSocket
-
Methods inherited from class com.facebook.react.bridge.BaseJavaModule
canOverrideExistingModule, hasConstants, invalidate, onCatalystInstanceDestroy
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
BlobModule
BlobModule(ReactApplicationContext reactContext)
-
-
Method Detail
-
initialize
void initialize()
This is called at the end of createCatalystInstance afterthe CatalystInstance has been created, in order to initialize NativeModules that require theCatalystInstance or JS modules.
-
getTypedExportedConstants
@Nullable() Map<String, Object> getTypedExportedConstants()
-
resolve
@Nullable() Array<byte> resolve(ReadableMap blob)
-
addNetworkingHandler
void addNetworkingHandler()
-
addWebSocketHandler
void addWebSocketHandler(double idDouble)
-
removeWebSocketHandler
void removeWebSocketHandler(double idDouble)
-
sendOverSocket
void sendOverSocket(ReadableMap blob, double idDouble)
-
createFromParts
void createFromParts(ReadableArray parts, String blobId)
-
-
-
-