// *********************************************************************** // Assembly : Game // Author : Kimch // Created : 2021-05-02 // Description : // Last Modified By : // Last Modified On : // *********************************************************************** // // // *********************************************************************** using System.Collections; using System.Collections.Generic; using UnityEngine; namespace G { /// /// 平台实现 /// public interface IPlatformWapper { /// /// /// string name { get; } /// /// /// string appId { get; } /// /// 初始化 /// Normal login. /// void Init(); /// /// 登录 /// Normal login. /// void NormalLogin(); /// /// 切换账号 /// Switch account. /// void SwitchAccount(); /// /// 游客账号绑定 /// Visitor account bind. /// void VisitorBindAccount(); /// /// 是否是游客账号 /// Is the visitor. /// bool IsVisitor(); /// /// 注销帐号(并非登出) /// void Logoff(System.Action onSuccess, System.Action onFail); /// /// only for ios /// 清除账号Token /// Clear Account Token. /// void ClearToken(); /// /// 展示激励视频广告. /// int ShowRewardAd(string scene); /// /// 加载聚合激励视频广告 /// void LoadRewardVideoAd_V(); /// /// 查询兑换码. /// void Redeem(string redeemCode); /// /// 获取AB测试的配置 /// Gets the ab config. /// /// The ab config. /// Key. /// Default value. /// The 1st type parameter 类型,需是JSON兼容的数据类型. string GetAbConfig(string key, string defaultValue); /// /// 获取邮件. /// void FetchMail(); /// /// 确认邮件. /// /// 需要确认的邮件id. void AckMail(int[] mailIds); /// /// 评分 /// void InAppRating(); /// /// 播放品牌特效. /// /// 游戏是否竖屏,竖屏游戏填true,横屏游戏填false. /// 品牌特效完成回调. void PlaySplashBrandEffect(bool portrait, System.Action splashBrandEffectAction); /// /// 验证敏感词. /// /// 输入的敏感词信息. /// 返回的敏感词结果. // 校验通过PASS = 1, // 校验不通过 REJIECT = 2,// 未知 UNKNOW = 3, void VerifySensitiveWords(string sensitiveWords, System.Action verifyResult); // 事件 void SetEventCommonHeader(string key, string value); /// /// /// /// /// void ReportEvent(string label, string paramJson); /// /// /// /// void OpenWebView(string url); /// /// 打开⽤户协议⻚⾯ /// void OpenUserProtocol(); /// /// 打开隐私政策⻚⾯ /// void OpenPrivacyProtocol(); /// /// 打开认证协议⻚⾯ /// void OpenIdentifyProtocol(); } }