Ads:set: Difference between revisions
From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Sets property value of the ad (accepted values: x, y) <source lang="lua"> = Ads:set(propertyvalue,) </..." |
No edit summary |
||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
'''Class:''' [[Ads]]<br/> | |||
=== Description === | === Description === | ||
Generic setter for "x" and "y" properties (banners only). | |||
< | <syntaxhighlight lang="lua"> | ||
Ads:set(property,value) | |||
</ | </syntaxhighlight> | ||
'''property:''' (string) name of the property to set | |||
'''value | Accepted values for '''property''': '''"x"''', '''"y"''' | ||
=== Parameters === | |||
'''property''': (string) name of the property to set<br/> | |||
'''value''': (number) value to set<br/> | |||
=== Example === | |||
<syntaxhighlight lang="lua"> | |||
admob:set("x", 16) admob:set("y", 64) | |||
print(admob:get("x"), admob:get("y")) | |||
</syntaxhighlight> | |||
{{Ads}} | |||
Latest revision as of 19:29, 15 February 2025
Available since: Gideros 2011.6
Class: Ads
Description
Generic setter for "x" and "y" properties (banners only).
Ads:set(property,value)
Accepted values for property: "x", "y"
Parameters
property: (string) name of the property to set
value: (number) value to set
Example
admob:set("x", 16) admob:set("y", 64)
print(admob:get("x"), admob:get("y"))