Difference between revisions of "Ads:get"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
| Line 4: | Line 4: | ||
=== Description === | === Description === | ||
| − | + | Generic getter for "x" and "y" properties (banners only). | |
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
| − | ( | + | (number) = Ads:get(property) |
</syntaxhighlight> | </syntaxhighlight> | ||
| + | |||
| + | Accepted values for '''property''': '''"x"''', '''"y"''' | ||
=== Parameters === | === Parameters === | ||
| Line 13: | Line 15: | ||
=== Return values === | === Return values === | ||
| − | '''Returns''' ( | + | '''Returns''' (number) value of the property<br/> |
| + | |||
| + | === Example === | ||
| + | <syntaxhighlight lang="lua"> | ||
| + | admob:setX(16) self.ADMOB:setY(64) | ||
| + | print(admob:get("x"), admob:get("y")) | ||
| + | </syntaxhighlight> | ||
{{Ads}} | {{Ads}} | ||
Latest revision as of 20:23, 15 February 2025
Available since: Gideros 2011.6
Class: Ads
Description
Generic getter for "x" and "y" properties (banners only).
(number) = Ads:get(property)
Accepted values for property: "x", "y"
Parameters
property: (string) value for which property to get
Return values
Returns (number) value of the property
Example
admob:setX(16) self.ADMOB:setY(64)
print(admob:get("x"), admob:get("y"))