Difference between revisions of "GoogleBilling:checkBillingSupported"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.09<br/> === Description === <br /> This request verifies that the Google Play application supports in-app billing.<br /> You usua...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2012.09<br/>
+
<languages />
=== Description ===
+
'''<translate>Available since</translate>:''' Gideros 2012.09<br/>
<br />
+
'''<translate>Class</translate>:''' [[Special:MyLanguage/GoogleBilling|GoogleBilling]]<br/>
 +
=== <translate>Description</translate> ===
 +
<translate><br />
 
This request verifies that the Google Play application supports in-app billing.<br />
 
This request verifies that the Google Play application supports in-app billing.<br />
 
You usually send this request when your application first starts up. This request is<br />
 
You usually send this request when your application first starts up. This request is<br />
 
useful if you want to enable or disable certain UI features that are relevant only to<br />
 
useful if you want to enable or disable certain UI features that are relevant only to<br />
 
in-app billing.<br />
 
in-app billing.<br />
<br />
+
<br /></translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
(bool), = GoogleBilling:checkBillingSupported(productType,)
+
(bool) = GoogleBilling:checkBillingSupported(productType)
</source>
+
</syntaxhighlight>
'''productType:''' (string, optional) The item type. It can be GoogleBilling.INAPP or GoogleBilling.SUBS. ''''''<br/>
+
=== <translate>Parameters</translate> ===
'''Returns''' (bool) `true` if in-app billing service is available, `false` otherwise.<br/>
+
'''productType''': (string, optional) <translate>The item type. It can be GoogleBilling.INAPP or GoogleBilling.SUBS.</translate> <br/>
 +
=== <translate>Return values</translate> ===
 +
'''<translate>Returns</translate>''' (bool) <translate>''true'' if in-app billing service is available, ''false'' otherwise.</translate><br/>

Latest revision as of 14:29, 13 July 2023


Available since: Gideros 2012.09
Class: GoogleBilling

Description


This request verifies that the Google Play application supports in-app billing.
You usually send this request when your application first starts up. This request is
useful if you want to enable or disable certain UI features that are relevant only to
in-app billing.

(bool) = GoogleBilling:checkBillingSupported(productType)

Parameters

productType: (string, optional) The item type. It can be GoogleBilling.INAPP or GoogleBilling.SUBS.

Return values

Returns (bool) true if in-app billing service is available, false otherwise.