public class BlobModule extends ReactContextBaseJavaModule
NativeModule.NativeMethod| Modifier and Type | Field and Description |
|---|---|
protected WebSocketModule.ContentHandler |
mContentHandler |
protected static java.lang.String |
NAME |
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC| Constructor and Description |
|---|
BlobModule(ReactApplicationContext reactContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
createFromParts(ReadableArray parts,
java.lang.String blobId) |
void |
disableBlobSupport(int id) |
void |
enableBlobSupport(int id) |
java.util.Map |
getConstants() |
java.lang.String |
getName() |
void |
release(java.lang.String blobId) |
void |
remove(java.lang.String blobId) |
byte[] |
resolve(ReadableMap blob) |
byte[] |
resolve(java.lang.String blobId,
int offset,
int size) |
byte[] |
resolve(android.net.Uri uri) |
void |
sendBlob(ReadableMap blob,
int id) |
java.lang.String |
store(byte[] data) |
void |
store(byte[] data,
java.lang.String blobId) |
getCurrentActivity, getReactApplicationContextcanOverrideExistingModule, hasConstants, initialize, onCatalystInstanceDestroyprotected static final java.lang.String NAME
protected final WebSocketModule.ContentHandler mContentHandler
public BlobModule(ReactApplicationContext reactContext)
public java.lang.String getName()
require() this module
from javascript.public java.util.Map getConstants()
getConstants in class BaseJavaModulepublic java.lang.String store(byte[] data)
public void store(byte[] data,
java.lang.String blobId)
public void remove(java.lang.String blobId)
public byte[] resolve(android.net.Uri uri)
public byte[] resolve(java.lang.String blobId,
int offset,
int size)
public byte[] resolve(ReadableMap blob)
public void enableBlobSupport(int id)
public void disableBlobSupport(int id)
public void sendBlob(ReadableMap blob, int id)
public void createFromParts(ReadableArray parts, java.lang.String blobId)
public void release(java.lang.String blobId)