public class ImageStoreManager extends NativeImageStoreAndroidSpec
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 |
getBase64ForTag(java.lang.String uri,
Callback success,
Callback error)
Calculate the base64 representation for an image.
|
java.lang.String |
getName() |
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 NativeImageStoreAndroidSpec
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.)