ImageRef profile which provides detailed information about stored object.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

imageInfo: ImageProfile

Image-specific information, e.g. memory consumption.

imageSource: null | ImageSource

Description of source from which the ImageRef was created. Non-null only if detailed profiling has been previously enabled by a call to enableDetailedProfiling.

Information about the strong and serialized references to the image.

Methods

  • Parameters

    Returns {
        imageInfo?: {
            bitmapMemoryConsumption?: number;
            hibernationMemoryConsumption?: number;
            serialize?: any;
        };
        imageSource?: null | {
            filePath?: null | string;
            type?: ImageSourceType;
            serialize?: any;
        };
        refInfo?: {
            serializedReferences?: number;
            strongReferences?: number;
            timestampCreated?: number;
            uniqueId?: string;
            serialize?: any;
        };
        serialize?: any;
    }

    • Optional imageInfo?: {
          bitmapMemoryConsumption?: number;
          hibernationMemoryConsumption?: number;
          serialize?: any;
      }

      Image-specific information, e.g. memory consumption.

      • Optional bitmapMemoryConsumption?: number

        Memory consumption of a memory-backed bitmap. Zero, if the image is hibernating.

        Default is 0

      • Optional hibernationMemoryConsumption?: number

        Memory consumption of the hibernation buffer. Zero, if the image is not hibernating, or is hibernated to a file.

        Default is 0

    • Optional imageSource?: null | {
          filePath?: null | string;
          type?: ImageSourceType;
          serialize?: any;
      }

      Description of source from which the ImageRef was created. Non-null only if detailed profiling has been previously enabled by a call to enableDetailedProfiling.

    • Optional refInfo?: {
          serializedReferences?: number;
          strongReferences?: number;
          timestampCreated?: number;
          uniqueId?: string;
          serialize?: any;
      }

      Information about the strong and serialized references to the image.

      • Optional Readonly serializedReferences?: number

        Number of serialized references to the object. The serialized reference count increases when an ImageRef is written to JSON or a Parcel on Android and decrease when the respective JSON or Parcel is deserialized.

        Default is 0

      • Optional Readonly strongReferences?: number

        Number of strong references associated with the object. The strong reference count increases when a new instance of a platform ImageRef class is created from the object's unique ID and decreases when the ImageRef instance is destroyed.

        Default is 0

      • Optional Readonly timestampCreated?: number

        Timestamp (milliseconds since the UNIX epoch), at which the object was first created.

      • Optional Readonly uniqueId?: string

        Unique ID of the object.