-
- All Implemented Interfaces:
-
com.facebook.react.bridge.NativeModule
,com.facebook.react.bridge.ReactModuleWithSpec
,com.facebook.react.turbomodule.core.interfaces.TurboModule
public class ImageStoreManager extends NativeImageStoreAndroidSpec
-
-
Constructor Summary
Constructors Constructor Description ImageStoreManager(ReactApplicationContext reactContext)
-
Method Summary
Modifier and Type Method Description String
getName()
void
getBase64ForTag(String uri, Callback success, Callback error)
Calculate the base64 representation for an image. -
Methods inherited from class com.facebook.fbreact.specs.NativeImageStoreAndroidSpec
getBase64ForTag
-
Methods inherited from class com.facebook.react.bridge.BaseJavaModule
canOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroy
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ImageStoreManager
ImageStoreManager(ReactApplicationContext reactContext)
-
-
Method Detail
-
getBase64ForTag
void getBase64ForTag(String uri, Callback success, Callback error)
Calculate the base64 representation for an image. The "tag" comes from iOS naming.
- Parameters:
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.
-
-
-
-