Class POBNativeAdImageResponseAsset

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      POBNativeAdImageResponseAsset(int assetId, boolean required, POBNativeAdLinkResponse link, String imageURL, int width, int height, POBNativeImageAssetType type) Creates the instance of the class which stores the data passed in image object of response
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getImageURL() Returns the url for the image asset
      int getWidth() Returns the width of the image asset
      int getHeight() Returns the height of the image asset
      POBNativeImageAssetType getType() Returns the type of the image asset (refer POBNativeImageAssetType)
      String toString() Converts the object to a readable string
      • Methods inherited from class com.pubmatic.sdk.nativead.response.POBNativeAdResponseAsset

        getAssetId, getLink, isRequired
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • POBNativeAdImageResponseAsset

        POBNativeAdImageResponseAsset(int assetId, boolean required, POBNativeAdLinkResponse link, String imageURL, int width, int height, POBNativeImageAssetType type)
        Creates the instance of the class which stores the data passed in image object of response
        Parameters:
        assetId - Integer (required)
        required - Boolean
        link - POBNativeAdLinkResponse
        imageURL - String (required)
        width - Integer
        height - Integer
        type - POBNativeImageAssetType
    • Method Detail

      • getWidth

         int getWidth()

        Returns the width of the image asset

        Returns:

        Integer

      • getHeight

         int getHeight()

        Returns the height of the image asset

        Returns:

        Integer

      • getType

        @Nullable() POBNativeImageAssetType getType()

        Returns the type of the image asset (refer POBNativeImageAssetType)

        Returns:

        POBNativeImageAssetType

      • toString

        @NonNull() String toString()

        Converts the object to a readable string

        Returns:

        Stringified object