Package com.yandex.mobile.ads.nativeads
Class NativeAdImage
- java.lang.Object
-
- com.yandex.mobile.ads.nativeads.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()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-