jsb_cocos2dx_pluginx_auto_api.js 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  1. /**
  2. * @module pluginx_protocols
  3. */
  4. var plugin = plugin || {};
  5. /**
  6. * @class PluginProtocol
  7. */
  8. plugin.PluginProtocol = {
  9. /**
  10. * @method getPluginName
  11. * @return {char}
  12. */
  13. getPluginName : function (
  14. )
  15. {
  16. return 0;
  17. },
  18. /**
  19. * @method getPluginVersion
  20. * @return {String}
  21. */
  22. getPluginVersion : function (
  23. )
  24. {
  25. return ;
  26. },
  27. /**
  28. * @method getSDKVersion
  29. * @return {String}
  30. */
  31. getSDKVersion : function (
  32. )
  33. {
  34. return ;
  35. },
  36. /**
  37. * @method setDebugMode
  38. * @param {bool} arg0
  39. */
  40. setDebugMode : function (
  41. bool
  42. )
  43. {
  44. },
  45. };
  46. /**
  47. * @class PluginManager
  48. */
  49. plugin.PluginManager = {
  50. /**
  51. * @method unloadPlugin
  52. * @param {char} arg0
  53. */
  54. unloadPlugin : function (
  55. char
  56. )
  57. {
  58. },
  59. /**
  60. * @method loadPlugin
  61. * @param {char} arg0
  62. * @return {cc.plugin::PluginProtocol}
  63. */
  64. loadPlugin : function (
  65. char
  66. )
  67. {
  68. return cc.plugin::PluginProtocol;
  69. },
  70. /**
  71. * @method end
  72. */
  73. end : function (
  74. )
  75. {
  76. },
  77. /**
  78. * @method getInstance
  79. * @return {cc.plugin::PluginManager}
  80. */
  81. getInstance : function (
  82. )
  83. {
  84. return cc.plugin::PluginManager;
  85. },
  86. };
  87. /**
  88. * @class ProtocolAnalytics
  89. */
  90. plugin.ProtocolAnalytics = {
  91. /**
  92. * @method logTimedEventBegin
  93. * @param {char} arg0
  94. */
  95. logTimedEventBegin : function (
  96. char
  97. )
  98. {
  99. },
  100. /**
  101. * @method logError
  102. * @param {char} arg0
  103. * @param {char} arg1
  104. */
  105. logError : function (
  106. char,
  107. char
  108. )
  109. {
  110. },
  111. /**
  112. * @method setCaptureUncaughtException
  113. * @param {bool} arg0
  114. */
  115. setCaptureUncaughtException : function (
  116. bool
  117. )
  118. {
  119. },
  120. /**
  121. * @method setSessionContinueMillis
  122. * @param {long} arg0
  123. */
  124. setSessionContinueMillis : function (
  125. long
  126. )
  127. {
  128. },
  129. /**
  130. * @method logEvent
  131. * @param {char} arg0
  132. * @param {map_object} arg1
  133. */
  134. logEvent : function (
  135. char,
  136. map
  137. )
  138. {
  139. },
  140. /**
  141. * @method startSession
  142. * @param {char} arg0
  143. */
  144. startSession : function (
  145. char
  146. )
  147. {
  148. },
  149. /**
  150. * @method stopSession
  151. */
  152. stopSession : function (
  153. )
  154. {
  155. },
  156. /**
  157. * @method logTimedEventEnd
  158. * @param {char} arg0
  159. */
  160. logTimedEventEnd : function (
  161. char
  162. )
  163. {
  164. },
  165. };
  166. /**
  167. * @class ProtocolIAP
  168. */
  169. plugin.ProtocolIAP = {
  170. /**
  171. * @method onPayResult
  172. * @param {cc.plugin::PayResultCode} arg0
  173. * @param {char} arg1
  174. */
  175. onPayResult : function (
  176. payresultcode,
  177. char
  178. )
  179. {
  180. },
  181. /**
  182. * @method getCallback
  183. * @return {function}
  184. */
  185. getCallback : function (
  186. )
  187. {
  188. return std::function<void (int, std::basic_string<char> &)>;
  189. },
  190. /**
  191. * @method configDeveloperInfo
  192. * @param {map_object} arg0
  193. */
  194. configDeveloperInfo : function (
  195. map
  196. )
  197. {
  198. },
  199. };
  200. /**
  201. * @class ProtocolAds
  202. */
  203. plugin.ProtocolAds = {
  204. /**
  205. * @method showAds
  206. * @param {map_object} arg0
  207. * @param {cc.plugin::ProtocolAds::AdsPos} arg1
  208. */
  209. showAds : function (
  210. map,
  211. adspos
  212. )
  213. {
  214. },
  215. /**
  216. * @method hideAds
  217. * @param {map_object} arg0
  218. */
  219. hideAds : function (
  220. map
  221. )
  222. {
  223. },
  224. /**
  225. * @method queryPoints
  226. */
  227. queryPoints : function (
  228. )
  229. {
  230. },
  231. /**
  232. * @method getCallback
  233. * @return {function}
  234. */
  235. getCallback : function (
  236. )
  237. {
  238. return std::function<void (int, std::basic_string<char> &)>;
  239. },
  240. /**
  241. * @method spendPoints
  242. * @param {int} arg0
  243. */
  244. spendPoints : function (
  245. int
  246. )
  247. {
  248. },
  249. /**
  250. * @method configDeveloperInfo
  251. * @param {map_object} arg0
  252. */
  253. configDeveloperInfo : function (
  254. map
  255. )
  256. {
  257. },
  258. };
  259. /**
  260. * @class ProtocolShare
  261. */
  262. plugin.ProtocolShare = {
  263. /**
  264. * @method onShareResult
  265. * @param {cc.plugin::ShareResultCode} arg0
  266. * @param {char} arg1
  267. */
  268. onShareResult : function (
  269. shareresultcode,
  270. char
  271. )
  272. {
  273. },
  274. /**
  275. * @method getCallback
  276. * @return {function}
  277. */
  278. getCallback : function (
  279. )
  280. {
  281. return std::function<void (int, std::basic_string<char> &)>;
  282. },
  283. /**
  284. * @method configDeveloperInfo
  285. * @param {map_object} arg0
  286. */
  287. configDeveloperInfo : function (
  288. map
  289. )
  290. {
  291. },
  292. };
  293. /**
  294. * @class ProtocolSocial
  295. */
  296. plugin.ProtocolSocial = {
  297. /**
  298. * @method showLeaderboard
  299. * @param {char} arg0
  300. */
  301. showLeaderboard : function (
  302. char
  303. )
  304. {
  305. },
  306. /**
  307. * @method showAchievements
  308. */
  309. showAchievements : function (
  310. )
  311. {
  312. },
  313. /**
  314. * @method getCallback
  315. * @return {function}
  316. */
  317. getCallback : function (
  318. )
  319. {
  320. return std::function<void (int, std::basic_string<char> &)>;
  321. },
  322. /**
  323. * @method configDeveloperInfo
  324. * @param {map_object} arg0
  325. */
  326. configDeveloperInfo : function (
  327. map
  328. )
  329. {
  330. },
  331. };
  332. /**
  333. * @class ProtocolUser
  334. */
  335. plugin.ProtocolUser = {
  336. /**
  337. * @method getCallback
  338. * @return {function}
  339. */
  340. getCallback : function (
  341. )
  342. {
  343. return std::function<void (int, std::basic_string<char> &)>;
  344. },
  345. /**
  346. * @method configDeveloperInfo
  347. * @param {map_object} arg0
  348. */
  349. configDeveloperInfo : function (
  350. map
  351. )
  352. {
  353. },
  354. /**
  355. * @method isLoggedIn
  356. * @return {bool}
  357. */
  358. isLoggedIn : function (
  359. )
  360. {
  361. return false;
  362. },
  363. /**
  364. * @method getSessionID
  365. * @return {String}
  366. */
  367. getSessionID : function (
  368. )
  369. {
  370. return ;
  371. },
  372. /**
  373. * @method getAccessToken
  374. * @return {String}
  375. */
  376. getAccessToken : function (
  377. )
  378. {
  379. return ;
  380. },
  381. };
  382. /**
  383. * @class AgentManager
  384. */
  385. plugin.AgentManager = {
  386. /**
  387. * @method getSocialPlugin
  388. * @return {cc.plugin::ProtocolSocial}
  389. */
  390. getSocialPlugin : function (
  391. )
  392. {
  393. return cc.plugin::ProtocolSocial;
  394. },
  395. /**
  396. * @method getAdsPlugin
  397. * @return {cc.plugin::ProtocolAds}
  398. */
  399. getAdsPlugin : function (
  400. )
  401. {
  402. return cc.plugin::ProtocolAds;
  403. },
  404. /**
  405. * @method purge
  406. */
  407. purge : function (
  408. )
  409. {
  410. },
  411. /**
  412. * @method getUserPlugin
  413. * @return {cc.plugin::ProtocolUser}
  414. */
  415. getUserPlugin : function (
  416. )
  417. {
  418. return cc.plugin::ProtocolUser;
  419. },
  420. /**
  421. * @method getIAPPlugin
  422. * @return {cc.plugin::ProtocolIAP}
  423. */
  424. getIAPPlugin : function (
  425. )
  426. {
  427. return cc.plugin::ProtocolIAP;
  428. },
  429. /**
  430. * @method getSharePlugin
  431. * @return {cc.plugin::ProtocolShare}
  432. */
  433. getSharePlugin : function (
  434. )
  435. {
  436. return cc.plugin::ProtocolShare;
  437. },
  438. /**
  439. * @method getAnalyticsPlugin
  440. * @return {cc.plugin::ProtocolAnalytics}
  441. */
  442. getAnalyticsPlugin : function (
  443. )
  444. {
  445. return cc.plugin::ProtocolAnalytics;
  446. },
  447. /**
  448. * @method destroyInstance
  449. */
  450. destroyInstance : function (
  451. )
  452. {
  453. },
  454. /**
  455. * @method getInstance
  456. * @return {cc.plugin::AgentManager}
  457. */
  458. getInstance : function (
  459. )
  460. {
  461. return cc.plugin::AgentManager;
  462. },
  463. };
  464. /**
  465. * @class FacebookAgent
  466. */
  467. plugin.FacebookAgent = {
  468. /**
  469. * @method activateApp
  470. */
  471. activateApp : function (
  472. )
  473. {
  474. },
  475. /**
  476. * @method getUserID
  477. * @return {String}
  478. */
  479. getUserID : function (
  480. )
  481. {
  482. return ;
  483. },
  484. /**
  485. * @method logEvent
  486. * @param {String|String|String|String} str
  487. * @param {float|map_object|float} float
  488. * @param {map_object} map
  489. */
  490. logEvent : function(
  491. str,
  492. float,
  493. map
  494. )
  495. {
  496. },
  497. /**
  498. * @method logout
  499. */
  500. logout : function (
  501. )
  502. {
  503. },
  504. /**
  505. * @method getSDKVersion
  506. * @return {String}
  507. */
  508. getSDKVersion : function (
  509. )
  510. {
  511. return ;
  512. },
  513. /**
  514. * @method logPurchase
  515. * @param {float|float} float
  516. * @param {String|String} str
  517. * @param {map_object} map
  518. */
  519. logPurchase : function(
  520. float,
  521. str,
  522. map
  523. )
  524. {
  525. },
  526. /**
  527. * @method isLoggedIn
  528. * @return {bool}
  529. */
  530. isLoggedIn : function (
  531. )
  532. {
  533. return false;
  534. },
  535. /**
  536. * @method canPresentDialogWithParams
  537. * @param {map_object} arg0
  538. * @return {bool}
  539. */
  540. canPresentDialogWithParams : function (
  541. map
  542. )
  543. {
  544. return false;
  545. },
  546. /**
  547. * @method getAccessToken
  548. * @return {String}
  549. */
  550. getAccessToken : function (
  551. )
  552. {
  553. return ;
  554. },
  555. /**
  556. * @method destroyInstance
  557. */
  558. destroyInstance : function (
  559. )
  560. {
  561. },
  562. /**
  563. * @method getInstanceJs
  564. * @return {cc.plugin::FacebookAgent}
  565. */
  566. getInstanceJs : function (
  567. )
  568. {
  569. return cc.plugin::FacebookAgent;
  570. },
  571. };