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, getReactApplicationContextIfActiveOrWarn
canOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invalidate
public 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 NativeImageStoreSpec
uri
- 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 NativeImageStoreSpec
public void removeImageForTag(java.lang.String uri)
removeImageForTag
in class NativeImageStoreSpec
public void addImageFromBase64(java.lang.String base64ImageData, Callback successCallback, Callback errorCallback)
addImageFromBase64
in class NativeImageStoreSpec