setPlacementAlignmentWithOffset

setPlacementAlignmentWithOffset(...)

setPlacementAlignmentWithOffset(options: { placementName: string; bannerAlignment: string; x: number; y: number; }) => Promise<void>

Sets banner placement position on the screen with defined offset.

Param
Type
Description

options

{ placementName: string; bannerAlignment: string; x: number; y: number; }

object containing:

– placement name,

– banner alignment with possible values: "topLeft", "topCenter", "topRight", "bottomLeft", "bottomCenter", "bottomRight"

– x value of the banner offset. When this value is positive the banner is moved to the right, when it is negative the banner is moved to the left.

– y value of the banner offset. When this value is positive the banner is moved to the bottom, when it is negative the banner is moved to the top.


Last updated