Skip to end of metadata
Go to start of metadata

JavaScript is disabled on your browser.
com.appnexus.opensdk

Class AdSize

  • java.lang.Object
    • com.appnexus.opensdk.AdSize


  • public class AdSize
    extends java.lang.Object
    A convenience class which holds a width and height in integers.
    • Constructor Summary

      Constructors 
      Constructor and Description
      AdSize(int w, int h) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean fitsIn(int width, int height)
      Determines whether this size object fits inside a rectangle of the given width and height
      int height() 
      int width() 
      • Methods inherited from class java.lang.Object

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

      • AdSize

        public AdSize(int w,
                      int h)
    • Method Detail

      • width

        public int width()
        Returns:
        The width, in pixels.
      • height

        public int height()
        Returns:
        The height, in pixels.
      • fitsIn

        public boolean fitsIn(int width,
                              int height)
        Determines whether this size object fits inside a rectangle of the given width and height
        Parameters:
        width - The width to check against.
        height - The height to check against.
        Returns:
        True, if the size fits inside the described rectangle, otherwise, false.

  • No labels