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