mobileCanMakePurchase

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
mobileCanMakePurchase()
Summary

Determines if in-app purchasing is available.

Introduced5.0.1
OSios, android
Platformsmobile
Example
answer mobileCanMakePurchase()
if mobileCanMakePurchase() is true then
   showPurchaseOptions
end if
Values
NameTypeDescription
return

Returns a boolean result:

true: in-app purchases can be made
false: in-app purchases cannot be made
RelatedCommand: mobilePurchaseSet, mobileDisablePurchaseUpdates, mobilePurchaseVerify, mobileRestorePurchases, mobilePurchaseSendRequest, mobilePurchaseConfirmDelivery, mobileEnablePurchaseUpdates, mobilePurchaseCreate
Function: mobilePurchases, mobilePurchaseState, mobilePurchaseGet, mobilePurchaseError
Message: purchaseStateUpdate
Description

Use the mobileCanMakePurchase function to determine if the in-app purchasing service is available.

The mobileCanMakePurchase function determines if in-app purchases can be made. This depends on whether the service is available, not whether the app itself implements in-app purchases. For example if a device is off-line mobileCanMakePurchase returns false.