Package 

Class ImageLoaderModule

    • Method Detail

      • getSize

         void getSize(String uriString, Promise promise)

        Fetch the width and height of the given image.

        Parameters:
        uriString - the URI of the remote image to prefetch
        promise - the promise that is fulfilled when the image is successfully prefetched orrejected when there is an error
      • getSizeWithHeaders

         void getSizeWithHeaders(String uriString, ReadableMap headers, Promise promise)

        Fetch the width and height of the given image with headers.

        Parameters:
        uriString - the URI of the remote image to prefetch
        headers - headers send with the request
        promise - the promise that is fulfilled when the image is successfully prefetched orrejected when there is an error
      • prefetchImage

         void prefetchImage(String uriString, double requestIdAsDouble, Promise promise)

        Prefetches the given image to the Fresco image disk cache.

        Parameters:
        uriString - the URI of the remote image to prefetch
        requestIdAsDouble - the client-supplied request ID used to identify this request
        promise - the promise that is fulfilled when the image is successfully prefetched orrejected when there is an error
      • onHostResume

         void onHostResume()

        Called either when the host activity receives a resume event (e.g. onResume orif the native module that implements this is initialized while the host activity is alreadyresumed. Always called for the most current activity.

      • onHostPause

         void onHostPause()

        Called when host activity receives pause event (e.g. onPause. Always calledfor the most current activity.

      • onHostDestroy

         void onHostDestroy()

        Called when host activity receives destroy event (e.g. onDestroy. Only calledfor the last React activity to be destroyed.