Difference between revisions of "Ads:setAlignment"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
Line 8: Line 8:
 
Ads:setAlignment(horizontal,vertical)
 
Ads:setAlignment(horizontal,vertical)
 
</syntaxhighlight>
 
</syntaxhighlight>
First value is for the horizontal alignment and can have values as "left", "center", "right"
+
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"
+
Second value is for the vertical alignment and can have values as '''"top"''', '''"center"''', '''"bottom"'''
  
 
=== Parameters ===
 
=== Parameters ===
 
'''horizontal''': (string) horizontal alignment<br/>
 
'''horizontal''': (string) horizontal alignment<br/>
 
'''vertical''': (string) vertical alignment<br/>
 
'''vertical''': (string) vertical alignment<br/>
 +
 +
=== Example ===
 +
<syntaxhighlight lang="lua">
 +
admob:setAlignment("left", "top")
 +
</syntaxhighlight>
  
 
{{Ads}}
 
{{Ads}}

Latest revision as of 21: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")