docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class IronSourceBannerSize

    Defines a banner's size informations

    Inheritance
    object
    IronSourceBannerSize
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    Type Name Description
    int width

    Width of the banner

    int height

    Height of the banner

    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
    IronSourceBannerSize

    LARGE

    Standard large size

    Declaration
    public static IronSourceBannerSize LARGE
    Field Value
    Type Description
    IronSourceBannerSize

    RECTANGLE

    Standard rectangle size

    Declaration
    public static IronSourceBannerSize RECTANGLE
    Field Value
    Type Description
    IronSourceBannerSize

    SMART

    Standard rectangle size

    Declaration
    public static IronSourceBannerSize SMART
    Field Value
    Type Description
    IronSourceBannerSize

    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
    ISContainerParams

    setBannerContainerParams(ISContainerParams)

    Set the Container for adaptive banner.

    Declaration
    public void setBannerContainerParams(ISContainerParams parameters)
    Parameters
    Type Name Description
    ISContainerParams parameters
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)