Class IronSourceBannerSize
Defines a banner's size informations
Inherited Members
Namespace: Global Namespace
Assembly: Unity.LevelPlay.dll
Syntax
public class IronSourceBannerSize
Constructors
IronSourceBannerSize(int, int)
Constructor for a custom banner size
Declaration
public IronSourceBannerSize(int width, int height)
Parameters
IronSourceBannerSize(string)
Constructor for a custom banner size
Declaration
public IronSourceBannerSize(string description)
Parameters
Type | Name | Description |
---|---|---|
string | description | Description of the banner |
Fields
BANNER
Standard banner size
Declaration
public static IronSourceBannerSize BANNER
Field Value
Type | Description |
---|---|
Iron |
LARGE
Standard large size
Declaration
public static IronSourceBannerSize LARGE
Field Value
Type | Description |
---|---|
Iron |
RECTANGLE
Standard rectangle size
Declaration
public static IronSourceBannerSize RECTANGLE
Field Value
Type | Description |
---|---|
Iron |
SMART
Standard rectangle size
Declaration
public static IronSourceBannerSize SMART
Field Value
Type | Description |
---|---|
Iron |
Properties
Description
Description for the banner
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
string |
Height
Height of the banner
Declaration
public int Height { get; }
Property Value
Type | Description |
---|---|
int |
Width
Width of the banner
Declaration
public int Width { get; }
Property Value
Type | Description |
---|---|
int |
Methods
IsAdaptiveEnabled()
Determines if the banner is adaptive
Declaration
public bool IsAdaptiveEnabled()
Returns
Type | Description |
---|---|
bool | Is the banner adaptive |
IsRespectAndroidCutoutsEnabled()
Declaration
public bool IsRespectAndroidCutoutsEnabled()
Returns
Type | Description |
---|---|
bool |
SetAdaptive(bool, int)
Set the banner to adaptive
Declaration
public void SetAdaptive(bool adaptive, int customWidth = -1)
Parameters
Type | Name | Description |
---|---|---|
bool | adaptive | Is the banner adaptive |
int | customWidth | Custom width of the adaptive banner container. On Android, it is measured in DP(density-independent pixels), and on IOS, it is in measured in Points. |
SetRespectAndroidCutouts(bool)
Set Respect for Android Cutouts. https://developer.android.com/develop/ui/views/layout/display-cutout
Declaration
public void SetRespectAndroidCutouts(bool respectAndroidCutouts)
Parameters
Type | Name | Description |
---|---|---|
bool | respectAndroidCutouts | Set if to respect the Android Cutouts or not. |
getBannerContainerParams()
Get the ISContainerParams object.
Declaration
public ISContainerParams getBannerContainerParams()
Returns
Type | Description |
---|---|
ISContainer |
ISContainerParams object |
setBannerContainerParams(ISContainerParams)
This API is optional and should only be called if you need to set a custom-sized container for Adaptive banner.
Declaration
public void setBannerContainerParams(ISContainerParams parameters)
Parameters
Type | Name | Description |
---|---|---|
ISContainer |
parameters | The Container params Width and Height. |