Difference between revisions of "Ads:set"
From GiderosMobile
m (Text replacement - "</source" to "</syntaxhighlight") |
|||
Line 4: | Line 4: | ||
=== Description === | === Description === | ||
− | + | Generic setter for "x" and "y" properties (banners only). | |
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Ads:set(property,value) | Ads:set(property,value) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | Accepted values for '''property''': '''"x"''', '''"y"''' | ||
=== Parameters === | === Parameters === | ||
'''property''': (string) name of the property to set<br/> | '''property''': (string) name of the property to set<br/> | ||
− | '''value''': ( | + | '''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}} | {{Ads}} |
Latest revision as of 20: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"))