Difference between revisions of "Ads:set"
From GiderosMobile
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | '''Available since:''' Gideros 2011.6<br/> | |
− | ''' | + | '''Class:''' [[Ads]]<br/> |
− | ''' | + | |
− | === | + | === Description === |
− | + | Generic setter for "x" and "y" properties (banners only). | |
− | < | + | <syntaxhighlight lang="lua"> |
− | + | Ads:set(property,value) | |
− | </ | + | </syntaxhighlight> |
− | === | + | |
− | '''property''': (string) | + | Accepted values for '''property''': '''"x"''', '''"y"''' |
− | '''value''': ( | + | |
+ | === 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}} | {{Ads}} |
Latest revision as of 21: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"))