Skip to content

XMediator::Api::BannerAds::Position

Class representing the available positions where a banner can be placed.

Public Functions

Name
Position Custom(int x, int y)
Creates a custom banner position in x,y coordinates.

Public Attributes

Name
readonly Position Top
Top center position.
readonly Position Bottom
Bottom center position.

Public Functions Documentation

function Custom

static Position Custom(
    int x,
    int y
)

Creates a custom banner position in x,y coordinates.

Parameters:

  • x X Coordinate from top-left corner
  • y Y Coordinate from top-left corner

Return: A Position object containing the specified x,y position.

Public Attributes Documentation

variable Top

static readonly Position Top = new Position(TopIdentifier);

Top center position.

variable Bottom

static readonly Position Bottom = new Position(BottomIdentifier);

Bottom center position.


Updated on 2024-11-07 at 18:31:49 +0000