Ads:setAlignment: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Available since:''' Gideros 2014.01<br/>
'''Available since:''' Gideros 2014.01<br/>
'''Class:''' [[Ads]]<br/>
=== Description ===
=== Description ===
<translate>Sets alignment of the ad
Sets alignment of the ad.
First value is for the horizontal alignment and can have values as "left", "center", "right"
<syntaxhighlight lang="lua">
Second value is for the vertical alignment and can have values as "top", "center", "bottom"</translate>
Ads:setAlignment(horizontal,vertical)
<source lang="lua">
</syntaxhighlight>
Ads:setAlignment(horizontal,vertical)
First value is for the horizontal alignment and can have values as '''"left"''', '''"center"''', '''"right"'''
</source>
 
Second value is for the vertical alignment and can have values as '''"top"''', '''"center"''', '''"bottom"'''
 
=== Parameters ===
=== Parameters ===
'''horizontal''': (strong) <translate>horizontal alignment</translate> <br/>
'''horizontal''': (string) horizontal alignment<br/>
'''vertical''': (string) <translate>vertical alignment</translate> <br/>
'''vertical''': (string) vertical alignment<br/>
 
=== Example ===
<syntaxhighlight lang="lua">
admob:setAlignment("left", "top")
</syntaxhighlight>
 
{{Ads}}

Latest revision as of 19:05, 15 February 2025

Available since: Gideros 2014.01
Class: Ads

Description

Sets alignment of the ad.

Ads:setAlignment(horizontal,vertical)

First value is for the horizontal alignment and can have values as "left", "center", "right"

Second value is for the vertical alignment and can have values as "top", "center", "bottom"

Parameters

horizontal: (string) horizontal alignment
vertical: (string) vertical alignment

Example

admob:setAlignment("left", "top")