Class Image

  • All Implemented Interfaces:

    
    public final class Image
    
                        

    Generic image asset with dimensions and interaction capabilities.

    This class represents any image asset used in native ads, including main images, ad choice icons, or other visual elements. It provides dimension information, URL loading, click handling, and tracking integration.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Image()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getWidth() The width of the image in pixels, set internally.
      final Integer getHeight() The height of the image in pixels, set internally.
      final String getUrl() The URL of the image to be loaded and displayed.
      final Link getLink() Optional Link for click handling when image is tapped.
      final List<TrackingInfo> getTrackers() List of TrackingInfo objects for image-specific event tracking.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait