Ads:get: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
''' | '''Available since:''' Gideros 2011.6<br/> | ||
=== | '''Class:''' [[Ads]]<br/> | ||
< | === Description === | ||
( | Generic getter for "x" and "y" properties (banners only). | ||
</ | <syntaxhighlight lang="lua"> | ||
=== | (number) = Ads:get(property) | ||
'''property''': (string) | </syntaxhighlight> | ||
=== | |||
''' | Accepted values for '''property''': '''"x"''', '''"y"''' | ||
=== Parameters === | |||
'''property''': (string) value for which property to get<br/> | |||
=== Return values === | |||
'''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}} | |||
Latest revision as of 19: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"))