Package com.ironsource.mediationsdk
Class ISBannerSize
-
- All Implemented Interfaces:
public class ISBannerSize
-
-
Field Summary
Fields Modifier and Type Field Description public final static ISBannerSizeBANNERpublic final static ISBannerSizeLARGEpublic final static ISBannerSizeRECTANGLEpublic final static ISBannerSizeSMARTpublic ISContainerParamscontainerParams
-
Constructor Summary
Constructors Constructor Description ISBannerSize(int width, int height)ISBannerSize(String description, int width, int height)
-
Method Summary
Modifier and Type Method Description voidsetContainerParams(ISContainerParams containerParams)static intgetMaximalAdaptiveHeight(int width)Calculates and returns the maximum height of an adaptive banner for a given width. StringgetDescription()intgetWidth()intgetHeight()booleanisSmart()voidsetAdaptive(boolean isAdaptive)booleanisAdaptive()-
-
Constructor Detail
-
ISBannerSize
ISBannerSize(int width, int height)
-
ISBannerSize
ISBannerSize(String description, int width, int height)
-
-
Method Detail
-
setContainerParams
void setContainerParams(ISContainerParams containerParams)
-
getMaximalAdaptiveHeight
static int getMaximalAdaptiveHeight(int width)
Calculates and returns the maximum height of an adaptive banner for a given width.
If there are no adaptive banner supporting networks, the return value will be -1.
- Parameters:
width- The specified width for which the maximum height is calculated.- Returns:
The maximal height of an adaptive banner, or -1 if no supporting networks are found.
-
getDescription
String getDescription()
-
getWidth
int getWidth()
-
getHeight
int getHeight()
-
isSmart
boolean isSmart()
-
setAdaptive
void setAdaptive(boolean isAdaptive)
-
isAdaptive
boolean isAdaptive()
-
-
-
-