Unity API
对 Combo SDK for Unity API 进行以下汇总,API 具体的实现细节请查阅开发指南。
账号与登录
API | Supported Platforms | Description |
---|---|---|
Login | 登录 | |
Logout | 登出 | |
GetLoginInfo | 获取用户信息 | |
OnKickOut | 踢出用户回调 | |
ResetGuest | 抹除当前设备存储的游客账号数据 |
内购与支付
API | Supported Platforms | Description |
---|---|---|
Purchase | 发起购买 |
游戏内广告
API | Supported Platforms | Description |
---|---|---|
PreloadAd | 预加载广告 | |
ShowAd | 展示广告 |
游戏内分享
API | Supported Platforms | Description |
---|---|---|
Share | 图片资源、视频资源分享 | |
GetAvailableShareTargets | 获取可用的分享方式 |
游戏联运
API | Supported Platforms | Description |
---|---|---|
ReportCreateRole | 上报创建角色 | |
ReportEnterGame | 上报进入游戏 | |
Quit | 退出游戏 |
游戏更新
API | Supported Platforms | Description |
---|---|---|
UpdateGame | 使用发行版本自有更新唤起功能 | |
GetDownloadUrl | 获取更新包下载地址 |
联系客服
API | Supported Platforms | Description |
---|---|---|
ContactSupport | 通过 SDK 内置的 WebView 在游戏内打开世游客服中心 |
游戏 Web 页
API | Supported Platforms | Description |
---|---|---|
OpenGameUrl | 在游戏内通过 Combo SDK 内置的 WebView 打开特定的 Web 页面 |
短链接
API | Supported Platforms | Description |
---|---|---|
OpenShortLink | 通过 Combo SDK 内置的 WebView 打开一个短链接 |
游戏公告
API | Supported Platforms | Description |
---|---|---|
CheckAnnouncements | 检查是否存在新的游戏公告 | |
OpenAnnouncements | 打开游戏公告 |
游戏内举报
API | Supported Platforms | Description |
---|---|---|
Complain | 游戏内举报 |
世游通行证
API | Supported Platforms | Description |
---|---|---|
ManageAccount | 打开通行证网站首页 | |
ChangePassword | 打开通行证网站的修改密码页面 | |
DeleteAccount | 打开通行证网站的删除账号页面 |
投放归因
API | Supported Platforms | Description |
---|---|---|
PromoPseudoPurchase | 伪付费上报 |
多语言
API | Supported Platforms | Description |
---|---|---|
LanguagePreference | 设置或获取 SDK 当前语言偏好 | |
LanguageCode | 获取 SDK 当前使用的语言代码 |
礼包码
API | Supported Platforms | Description |
---|---|---|
RedeemGiftCode | 兑换礼包码 |
其他
API | Supported Platforms | Description |
---|---|---|
GetDistro | 获取发行版本标识 | |
GetVariant | 获取分包标识 | |
OpenAppSettings | 修改应用系统权限设置 | |
GetGameId | 获取由世游侧为游戏分配,用于标识游戏的业务代号 | |
GetDeviceId | 获取设备 ID | |
GetVersion | 获取 Combo SDK for Unity 版本信息 | |
GetVersionNative | 获取 Combo SDK for Android / iOS / Windows 版本信息 | |
IsFeatureAvailable | 判断具体功能是否可用 - UPDATE_GAME (游戏更新) - QUIT (退出游戏) - PRODUCT_QUANTITY (渠道商店支持选择商品数量) - SEAYOO_ACCOUNT (世游通行证相关功能) - CONTACT_SUPPORT (联系客服) |