public class ImageStoreManager extends NativeImageStoreSpec
NativeModule.NativeMethod| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC| Constructor and Description |
|---|
ImageStoreManager(ReactApplicationContext reactContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addImageFromBase64(java.lang.String base64ImageData,
Callback successCallback,
Callback errorCallback) |
void |
getBase64ForTag(java.lang.String uri,
Callback success,
Callback error)
Calculate the base64 representation for an image.
|
java.lang.String |
getName() |
void |
hasImageForTag(java.lang.String uri,
Callback callback) |
void |
removeImageForTag(java.lang.String uri) |
getCurrentActivity, getReactApplicationContext, getReactApplicationContextIfActiveOrWarncanOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinvalidatepublic static final java.lang.String NAME
public ImageStoreManager(ReactApplicationContext reactContext)
public java.lang.String getName()
require() this module
from javascript.public void getBase64ForTag(java.lang.String uri,
Callback success,
Callback error)
getBase64ForTag in class NativeImageStoreSpecuri - the URI of the image, file:// or content://success - callback to be invoked with the base64 string as the only argumenterror - callback to be invoked on error (e.g. file not found, not readable etc.)public void hasImageForTag(java.lang.String uri,
Callback callback)
hasImageForTag in class NativeImageStoreSpecpublic void removeImageForTag(java.lang.String uri)
removeImageForTag in class NativeImageStoreSpecpublic void addImageFromBase64(java.lang.String base64ImageData,
Callback successCallback,
Callback errorCallback)
addImageFromBase64 in class NativeImageStoreSpec