2013-04-07 16:58:26 +08:00
|
|
|
/**
|
|
|
|
* @module pluginx_protocols
|
|
|
|
*/
|
|
|
|
var plugin = plugin || {};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @class PluginProtocol
|
|
|
|
*/
|
|
|
|
plugin.PluginProtocol = {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method setUserData
|
|
|
|
* @param {void*}
|
|
|
|
*/
|
|
|
|
setUserData : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method getUserData
|
|
|
|
* @return A value converted from C/C++ "void*"
|
|
|
|
*/
|
|
|
|
getUserData : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method getPluginName
|
|
|
|
* @return A value converted from C/C++ "const char*"
|
|
|
|
*/
|
|
|
|
getPluginName : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method getPluginVersion
|
|
|
|
* @return A value converted from C/C++ "const char*"
|
|
|
|
*/
|
|
|
|
getPluginVersion : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method init
|
|
|
|
* @return A value converted from C/C++ "bool"
|
|
|
|
*/
|
|
|
|
init : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method setDebugMode
|
|
|
|
* @param {bool}
|
|
|
|
*/
|
|
|
|
setDebugMode : function () {},
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @class PluginManager
|
|
|
|
*/
|
|
|
|
plugin.PluginManager = {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method unloadPlugin
|
|
|
|
* @param {const char*}
|
|
|
|
*/
|
|
|
|
unloadPlugin : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method loadPlugin
|
|
|
|
* @return A value converted from C/C++ "cocos2d::plugin::PluginProtocol*"
|
|
|
|
* @param {const char*}
|
|
|
|
*/
|
|
|
|
loadPlugin : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method end
|
|
|
|
*/
|
|
|
|
end : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method getInstance
|
|
|
|
* @return A value converted from C/C++ "cocos2d::plugin::PluginManager*"
|
|
|
|
*/
|
|
|
|
getInstance : function () {},
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @class ProtocolAnalytics
|
|
|
|
*/
|
|
|
|
plugin.ProtocolAnalytics = {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method logTimedEventBegin
|
|
|
|
* @param {const char*}
|
|
|
|
*/
|
|
|
|
logTimedEventBegin : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method logError
|
|
|
|
* @param {const char*}
|
|
|
|
* @param {const char*}
|
|
|
|
*/
|
|
|
|
logError : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method setCaptureUncaughtException
|
|
|
|
* @param {bool}
|
|
|
|
*/
|
|
|
|
setCaptureUncaughtException : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method getPluginName
|
|
|
|
* @return A value converted from C/C++ "const char*"
|
|
|
|
*/
|
|
|
|
getPluginName : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method getPluginVersion
|
|
|
|
* @return A value converted from C/C++ "const char*"
|
|
|
|
*/
|
|
|
|
getPluginVersion : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method logEvent
|
|
|
|
* @param {const char*}
|
|
|
|
* @param {LogEventParamMap*}
|
|
|
|
*/
|
|
|
|
logEvent : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method setSessionContinueMillis
|
|
|
|
* @param {long}
|
|
|
|
*/
|
|
|
|
setSessionContinueMillis : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method init
|
|
|
|
* @return A value converted from C/C++ "bool"
|
|
|
|
*/
|
|
|
|
init : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method startSession
|
|
|
|
* @param {const char*}
|
|
|
|
*/
|
|
|
|
startSession : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method stopSession
|
|
|
|
*/
|
|
|
|
stopSession : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method logTimedEventEnd
|
|
|
|
* @param {const char*}
|
|
|
|
*/
|
|
|
|
logTimedEventEnd : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method getSDKVersion
|
|
|
|
* @return A value converted from C/C++ "const char*"
|
|
|
|
*/
|
|
|
|
getSDKVersion : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method setDebugMode
|
|
|
|
* @param {bool}
|
|
|
|
*/
|
|
|
|
setDebugMode : function () {},
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @class ProtocolIAP
|
|
|
|
*/
|
|
|
|
plugin.ProtocolIAP = {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method initDeveloperInfo
|
|
|
|
* @param {TDeveloperInfo}
|
|
|
|
*/
|
|
|
|
initDeveloperInfo : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method getPluginVersion
|
|
|
|
* @return A value converted from C/C++ "const char*"
|
|
|
|
*/
|
|
|
|
getPluginVersion : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method init
|
|
|
|
* @return A value converted from C/C++ "bool"
|
|
|
|
*/
|
|
|
|
init : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method payForProduct
|
|
|
|
* @param {TProductInfo}
|
|
|
|
*/
|
|
|
|
payForProduct : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method getSDKVersion
|
|
|
|
* @return A value converted from C/C++ "const char*"
|
|
|
|
*/
|
|
|
|
getSDKVersion : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method setDebugMode
|
|
|
|
* @param {bool}
|
|
|
|
*/
|
|
|
|
setDebugMode : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method getPluginName
|
|
|
|
* @return A value converted from C/C++ "const char*"
|
|
|
|
*/
|
|
|
|
getPluginName : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method payResult
|
|
|
|
* @param {cocos2d::plugin::EPayResult}
|
|
|
|
* @param {const char*}
|
|
|
|
*/
|
|
|
|
payResult : function () {},
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2013-04-24 09:43:40 +08:00
|
|
|
* @class ProtocolAds
|
2013-04-07 16:58:26 +08:00
|
|
|
*/
|
2013-04-24 09:43:40 +08:00
|
|
|
plugin.ProtocolAds = {
|
2013-04-07 16:58:26 +08:00
|
|
|
|
|
|
|
/**
|
2013-04-24 09:43:40 +08:00
|
|
|
* @method hideBannerAd
|
2013-04-07 16:58:26 +08:00
|
|
|
*/
|
2013-04-24 09:43:40 +08:00
|
|
|
hideBannerAd : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method showBannerAd
|
|
|
|
* @param {cocos2d::plugin::ProtocolAds::EBannerPos}
|
|
|
|
* @param {int}
|
|
|
|
*/
|
|
|
|
showBannerAd : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method getPluginName
|
|
|
|
* @return A value converted from C/C++ "const char*"
|
|
|
|
*/
|
|
|
|
getPluginName : function () {},
|
2013-04-07 16:58:26 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @method getPluginVersion
|
|
|
|
* @return A value converted from C/C++ "const char*"
|
|
|
|
*/
|
|
|
|
getPluginVersion : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method init
|
|
|
|
* @return A value converted from C/C++ "bool"
|
|
|
|
*/
|
|
|
|
init : function () {},
|
|
|
|
|
|
|
|
/**
|
2013-04-24 09:43:40 +08:00
|
|
|
* @method initAppInfo
|
|
|
|
* @param {TAppInfo}
|
2013-04-07 16:58:26 +08:00
|
|
|
*/
|
2013-04-24 09:43:40 +08:00
|
|
|
initAppInfo : function () {},
|
2013-04-07 16:58:26 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @method getSDKVersion
|
|
|
|
* @return A value converted from C/C++ "const char*"
|
|
|
|
*/
|
|
|
|
getSDKVersion : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method setDebugMode
|
|
|
|
* @param {bool}
|
|
|
|
*/
|
|
|
|
setDebugMode : function () {},
|
|
|
|
|
|
|
|
/**
|
2013-04-24 09:43:40 +08:00
|
|
|
* @method presentScreen
|
2013-04-07 16:58:26 +08:00
|
|
|
*/
|
2013-04-24 09:43:40 +08:00
|
|
|
presentScreen : function () {},
|
2013-04-07 16:58:26 +08:00
|
|
|
|
|
|
|
/**
|
2013-04-24 09:43:40 +08:00
|
|
|
* @method receiveAd
|
|
|
|
*/
|
|
|
|
receiveAd : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method failedToReceiveAd
|
|
|
|
* @param {cocos2d::plugin::AdListener::EAdErrorCode}
|
2013-04-07 16:58:26 +08:00
|
|
|
* @param {const char*}
|
|
|
|
*/
|
2013-04-24 09:43:40 +08:00
|
|
|
failedToReceiveAd : function () {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method dismissScreen
|
|
|
|
*/
|
|
|
|
dismissScreen : function () {},
|
2013-04-07 16:58:26 +08:00
|
|
|
|
|
|
|
};
|