ProtocolIAP
Class
Extends PluginProtocol
Module: anysdk
IAP protocol
Index
Methods
payForProduct
pay interfacegetOrderId
get order IDresetPayState
reset the pay statusgetPluginId
get plugin IDsetListener
set listenergetListener
get listenerisFunctionSupported
Check whether the function is supportedgetPluginName
get plugin namegetPluginVersion
get plugin versiongetSDKVersion
get SDK versioncallFuncWithParam
void methods for reflections with parametercallStringFuncWithParam
String methods for reflections with parametercallIntFuncWithParam
int methods for reflections with parametercallBoolFuncWithParam
boolean methods for reflections with parametercallFloatFuncWithParam
float methods for reflections with parameter
Details
Methods
payForProduct
pay interface
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:709 |
Parameters
info
Object Type:map
getOrderId
get order ID
meta | description |
---|---|
Returns | String |
Defined in | extensions/anysdk/jsb_anysdk.js:720 |
resetPayState
reset the pay status
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:732 |
getPluginId
get plugin ID
meta | description |
---|---|
Returns | String |
Defined in | extensions/anysdk/jsb_anysdk.js:743 |
setListener
set listener
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:755 |
Parameters
getListener
get listener
meta | description |
---|---|
Returns | Function |
Defined in | extensions/anysdk/jsb_anysdk.js:767 |
isFunctionSupported
Check whether the function is supported
meta | description |
---|---|
Returns | boolean |
Defined in | extensions/anysdk/jsb_anysdk.js:328 |
Parameters
functionName
String
getPluginName
get plugin name
meta | description |
---|---|
Returns | String |
Defined in | extensions/anysdk/jsb_anysdk.js:342 |
getPluginVersion
get plugin version
meta | description |
---|---|
Returns | String |
Defined in | extensions/anysdk/jsb_anysdk.js:354 |
getSDKVersion
get SDK version
meta | description |
---|---|
Returns | String |
Defined in | extensions/anysdk/jsb_anysdk.js:366 |
callFuncWithParam
void methods for reflections with parameter
meta | description |
---|---|
Defined in | extensions/anysdk/jsb_anysdk.js:378 |
Parameters
callStringFuncWithParam
String methods for reflections with parameter
meta | description |
---|---|
Returns | String |
Defined in | extensions/anysdk/jsb_anysdk.js:391 |
Parameters
callIntFuncWithParam
int methods for reflections with parameter
meta | description |
---|---|
Returns | Number |
Defined in | extensions/anysdk/jsb_anysdk.js:406 |
Parameters
callBoolFuncWithParam
boolean methods for reflections with parameter
meta | description |
---|---|
Returns | boolean |
Defined in | extensions/anysdk/jsb_anysdk.js:421 |
Parameters
callFloatFuncWithParam
float methods for reflections with parameter
meta | description |
---|---|
Returns | Number |
Defined in | extensions/anysdk/jsb_anysdk.js:436 |