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)
Set the banner to adaptive
Declaration
public void SetAdaptive(bool adaptive)
Parameters
Type | Name | Description |
---|---|---|
bool | adaptive | Is the banner adaptive |
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 |
getBannerContainerParams()
Declaration
public ISContainerParams getBannerContainerParams()
Returns
Type | Description |
---|---|
ISContainer |
setBannerContainerParams(ISContainerParams)
Set the Container for adaptive banner.
Declaration
public void setBannerContainerParams(ISContainerParams parameters)
Parameters
Type | Name | Description |
---|---|---|
ISContainer |
parameters |