QuickSDK_ios.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //
  2. // QuickSDKCocos_ios.h
  3. // QuickSDKInterfaceCocos
  4. //
  5. // Created by 0280106PC0119 on 15/9/8.
  6. // Copyright (c) 2015年 QuickSDK. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <SMPCQuickSDK/SMPCQuickSDK.h>
  10. struct GameRoleInfo;
  11. struct OrderInfo;
  12. @interface QuickSDK_ios : NSObject
  13. {
  14. NSString *_gameObjectName;
  15. int initState; //-1未初始化,0初始化失败,1初始化成功
  16. BOOL bU3dInited; //setListener表明u3d初始化成功
  17. }
  18. + (QuickSDK_ios *)shareInstance;
  19. - (void)setListener:(NSString *)gameObjectName;
  20. -(void)login;
  21. -(void)logout;
  22. -(void)pay:(SMPCQuickSDKPayOrderInfo *)orderInfo gameRoleInfo:(SMPCQuickSDKGameRoleInfo *)gameRoleInfo;
  23. //-(void)updateRoleInfoWith:(SMPCQuickSDKGameRoleInfo *)gameRoleInfo;//使用
  24. -(void)updateRoleInfoWith:(SMPCQuickSDKGameRoleInfo *)gameRoleInfo isCreate:(BOOL)isCreate;//isCreate表示是否为刚刚创建角色
  25. -(void)enterYunKeFuCenter:(SMPCQuickSDKGameRoleInfo *)gameRoleInfo;
  26. /**
  27. * 是否开启第三方登录
  28. */
  29. -(void)openThirdLogin:(BOOL)thirdLogin;
  30. /**
  31. * 获取当前用户的ID
  32. *
  33. * @return 获取当前用户的ID,如未登录则返回空
  34. */
  35. - (NSString *)getIdCode;
  36. /**
  37. * 是否游客账号
  38. *
  39. * @return 获取当前用户的ID,如未登录则返回空
  40. */
  41. -(BOOL)isGuester;
  42. /**
  43. * 绑定身份证
  44. */
  45. -(void)ShowCertification;
  46. /**
  47. * 游客绑定并绑定身份证
  48. */
  49. -(void) BindCertification;
  50. -(void)Getlocalized:(NSString *)productIds;
  51. - (int)showRealNameAuth:(int)show;//实名认证;show 非0展示实名认证界面,0查询实名信息
  52. - (int)enterUserCenter;
  53. - (int)enterCustomerCenter;//客服
  54. - (int)enterBBS;//BBS
  55. - (int)showToolBar:(int)place;
  56. - (int)hideToolBar;
  57. - (bool)isFunctionTypeSupported:(int)type;
  58. -(int)pausedGame;
  59. - (NSString *)channelName; //获取渠道名称
  60. - (NSString *)channelVersion; //获取渠道版本
  61. - (int)channelType; //获取渠道类别 渠道唯一标识
  62. - (NSString *)userId; //登录后获取UID
  63. - (NSString *)userToken; //登录后获取userToken
  64. - (NSString *)SDKVersion; //QuickSDK版本
  65. - (NSString *)getConfigValue:(NSString *)key; //获取自定义参数
  66. -(void)addNotifications;
  67. @end