Class NativeAdImage


  • public final class NativeAdImage
    extends java.lang.Object
    NativeAdImage represents image asset. Height and width is always available. Bitmap is unavailable until loaded.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      android.graphics.Bitmap getBitmap()
      Returns bitmap.
      int getHeight()
      Returns height of image in physical pixels.
      java.lang.String getSizeType()  
      int getWidth()
      Returns width of image in physical pixels.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getSizeType

        @Nullable
        public java.lang.String getSizeType()
      • getBitmap

        @Nullable
        public android.graphics.Bitmap getBitmap()
        Returns bitmap.
        Returns:
        bitmap.
      • getHeight

        public int getHeight()
        Returns height of image in physical pixels.
        Returns:
        height in physical pixels.
      • getWidth

        public int getWidth()
        Returns width of image in physical pixels.
        Returns:
        width in physical pixels.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object