public class ImageLoaderModule extends ReactContextBaseJavaModule
BaseJavaModule.JavaMethodNativeModule.NativeMethodMETHOD_TYPE_REMOTE, METHOD_TYPE_REMOTE_ASYNC| Constructor and Description |
|---|
ImageLoaderModule(ReactApplicationContext reactContext) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
void |
prefetchImage(java.lang.String uriString,
Promise promise)
Prefetches the given image to the Fresco image disk cache.
|
getCurrentActivity, getReactApplicationContextcanOverrideExistingModule, getConstants, getMethods, initialize, onCatalystInstanceDestroy, onReactBridgeInitialized, supportsWebWorkers, writeConstantsFieldpublic ImageLoaderModule(ReactApplicationContext reactContext)
public java.lang.String getName()
require() this module
from javascript.public void prefetchImage(java.lang.String uriString,
Promise promise)
uriString - the URI of the remote image to prefetchpromise - the promise that is fulfilled when the image is successfully prefetched
or rejected when there is an error