-
- 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 voidinitialize()This is called at the end of createCatalystInstance afterthe CatalystInstance has been created, in order to initialize NativeModules that require theCatalystInstance or JS modules. StringgetName()Map<String, Object>getTypedExportedConstants()Stringstore(Array<byte> data)voidstore(Array<byte> data, String blobId)voidremove(String blobId)Array<byte>resolve(Uri uri)Array<byte>resolve(String blobId, int offset, int size)Array<byte>resolve(ReadableMap blob)voidaddNetworkingHandler()voidaddWebSocketHandler(double idDouble)voidremoveWebSocketHandler(double idDouble)voidsendOverSocket(ReadableMap blob, double idDouble)voidcreateFromParts(ReadableArray parts, String blobId)voidrelease(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)
-
-
-
-