Class POBNativeRequestImageAsset

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      POBNativeRequestImageAsset(int id, boolean required, POBNativeImageAssetType type, int minimumWidth, int minimumHeight) Helps to create the POBNativeRequestImageAsset object
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      POBNativeImageAssetType getType() Getter for image asset type
      int getMinimumWidth() Getter for minimum width
      int getMinimumHeight() Getter for minimum height
      List<String> getMimes() Getter for mimes
      void setMimes(@NonNull() List<String> mimes) Setter of Mimes type list
      JSONObject getRTBJSON()
      • Methods inherited from class com.pubmatic.sdk.nativead.request.POBBaseNativeRequestAsset

        getId, isRequired
      • Methods inherited from class java.lang.Object

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

      • POBNativeRequestImageAsset

        POBNativeRequestImageAsset(int id, boolean required, POBNativeImageAssetType type, int minimumWidth, int minimumHeight)
        Helps to create the POBNativeRequestImageAsset object
        Parameters:
        id - of native request
        required - indicates if the asset is required to be displayed
        type - of image
        minimumWidth - of image in pixels
        minimumHeight - of image in pixels
    • Method Detail

      • getType

        @NonNull() POBNativeImageAssetType getType()

        Getter for image asset type

        Returns:

        type of image

      • getMinimumWidth

         int getMinimumWidth()

        Getter for minimum width

        Returns:

        minimum width of image

      • getMinimumHeight

         int getMinimumHeight()

        Getter for minimum height

        Returns:

        minimum height of image

      • getRTBJSON

        @NonNull() JSONObject getRTBJSON()
        Returns:

        JSON of format: { "id": 1, "required": 1, "img": { "type": 1, "wmin": 300, "hmin": 200, "mimes": [ "image/jpg", "image/jpeg", "image/png" ] } }