123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936 |
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using PottingMobileSDK.MiniJSON;
- using UnityEngine;
- #if UNITY_IOS
- public class PottingMobileiOS : PottingMobileBase
- {
-
- [DllImport("__Internal")]
- private static extern void InitUnityAdSdk(string adUnitsJson, string appAppleId, string umengId, string appsFlyerKey,string umengChannel, string pangleAppID);
- [DllImport("__Internal")]
- private static extern void IsDebug(bool isDebug);
- ///开启定时自动加载广告
- [DllImport("__Internal")]
- private static extern void AutoLoadAd();
- //广告相关函数
- //加载和显示Banner广告,adPostion-Banner的位置,可传规定的字符串:TopLeft, TopCenter, TopRight, Centered, BottomLeft, BottomCenter, BottomRight
- [DllImport("__Internal")]
- private static extern void LoadAndShowBannerAd(string adPostion, int adSize);
- //隐藏Banner广告
- [DllImport("__Internal")]
- private static extern void HideBannerAd();
- //加载Interstitial广告
- [DllImport("__Internal")]
- private static extern void LoadInterstitialAd();
- //显示Interstitial广告
- [DllImport("__Internal")]
- private static extern void ShowInterstitialAd();
- //加载RewardedVideo广告
- [DllImport("__Internal")]
- private static extern void LoadRewardedVideoAd();
- //是否有加载完成的激励视频广告
- [DllImport("__Internal")]
- private static extern bool HasRewardedVideo();
- [DllImport("__Internal")]
- private static extern bool hasRewardedVideo(string adId);
- //显示激励视频广告
- [DllImport("__Internal")]
- private static extern void ShowRewardedVideoAd();
- [DllImport("__Internal")]
- private static extern void consentInformationReset();
- [DllImport("__Internal")]
- private static extern void showRewardedVideoAd(string adId);
- //加载插屏式激励视频广告
- [DllImport("__Internal")]
- private static extern void LoadRewardedInterstitialAd();
- //显示插屏式激励视频广告
- [DllImport("__Internal")]
- private static extern void ShowRewardedInterstitialAd();
- //加载开屏广告
- [DllImport("__Internal")]
- private static extern void LoadAppOpenAd();
- //显示开屏广告
- [DllImport("__Internal")]
- private static extern void ShowAppOpenAd();
- //统计相关函数
- [DllImport("__Internal")]
- private static extern void CustomEvent(string key, string dicJson);
- //设置用户等级 (由于友盟SDK限制,现改方法已经弃用,调用无效果,如需要请自行到友盟后台自定义该事件)
- //[DllImport("__Internal")]
- //private static extern void SetUserLevelId(int level);
- //充值购买虚拟货币(金币、宝石、金票等), cash-现金数额,source-购买渠道,coin-虚拟货币数额
- [DllImport("__Internal")]
- private static extern void Pay(double cash, int source, double coin);
- //充值购买虚拟道具, cash-现金数额,source-购买渠道,coin-虚拟货币数额
- [DllImport("__Internal")]
- private static extern void PayItem(double cash, int source, string itemName, int amount, double price);
- //游戏内部货币购买道具操作,itemName-道具名称,amount-数量,price-价格
- [DllImport("__Internal")]
- private static extern void Buy(string itemName, int amount, double price);
- //游戏内消耗道具操作,itemName-道具名称,amount-数量,price-价格
- [DllImport("__Internal")]
- private static extern void Use(string itemName, int amount, double price);
- //开始关卡,levelName-关卡名称
- [DllImport("__Internal")]
- private static extern void StartLevel(string levelName);
- //关卡完成,levelName-关卡名称
- [DllImport("__Internal")]
- private static extern void FinishLevel(string levelName);
- //关卡失败,levelName-关卡名称
- [DllImport("__Internal")]
- private static extern void FailLevel(string levelName);
- //得到虚拟货币奖励,coin-虚拟货币数额,source-获取渠道(例:游戏奖励、玩家赠送、节日赠送、打怪掉落等)
- [DllImport("__Internal")]
- private static extern void Bonus(double coin, int source);
- //得到道具奖励,itemName-道具名称,amount-数量,price-价格,source-奖励方法
- [DllImport("__Internal")]
- private static extern void BonusItem(string itemName, int amount, double price, int source);
- [DllImport("__Internal")]
- private static extern void buyProduct(double price,string productId);
- [DllImport("__Internal")]
- private static extern void Restore();
- [DllImport("__Internal")]
- private static extern void querySkuDetail(string prdIdsStr);
- [DllImport("__Internal")]
- private static extern void SetRepeatTime(int time);
- [DllImport("__Internal")]
- private static extern void InitApplePaySharedSecretKey(string sharedSecret);
- // 本地推送-设置一个seconds秒后发出的推送
- [DllImport("__Internal")]
- private static extern void SetLocalNotification(int id, string titleStr, string bodyStr, int seconds);
- // 本地推送-移除某一个指定的通知
- [DllImport("__Internal")]
- private static extern void CancleLocalNotification(int id);
- // 本地推送-移除所有本地通知
- [DllImport("__Internal")]
- private static extern void CancleAllLocalNotification();
- [DllImport("__Internal")]
- private static extern void shareText(string text);
- [DllImport("__Internal")]
- private static extern void LoginUseAppleSign();
- [DllImport("__Internal")]
- private static extern void LoginUseFacebook();
- [DllImport("__Internal")]
- private static extern void FacebookLogOut();
- [DllImport("__Internal")]
- private static extern void InitServicesIsDebug(string gameId, string gameSecret, bool isdebug);
- [DllImport("__Internal")]
- private static extern void InitServices(string gameId, string gameSecret, string baseUrl);
- [DllImport("__Internal")]
- private static extern void FeedBackSubmit(string msg, string connect, string docInfo);
- //传入链接,弹出WebView视图
- [DllImport("__Internal")]
- private static extern void ShowWebView(string url);
- //显示游戏推荐webview
- [DllImport("__Internal")]
- private static extern void ShowGameRecommend();
- //显示反馈客服webview
- [DllImport("__Internal")]
- private static extern void ShowFeedBackHtml(string data);
- //GameCenter 登录
- [DllImport("__Internal")]
- private static extern void GameCenterLogin();
- //上传默认存档
- [DllImport("__Internal")]
- private static extern void UploadAcrive(string data);
- //下载单个默认的存档
- [DllImport("__Internal")]
- private static extern void DownloadOneSavedAcrive();
- //上传指定名称存档
- [DllImport("__Internal")]
- private static extern void UploadAcriveHasName(string name, string data);
- //下载指定名称存档
- [DllImport("__Internal")]
- private static extern void DownloadOneSavedAcriveHasName(string name);
- //删除指定名称存档
- [DllImport("__Internal")]
- private static extern void DeleteOneSavedAcrive(string name);
- //获取该游戏所有iCloud存档
- [DllImport("__Internal")]
- private static extern void DownloadAllSavedAcrive();
- //解决指定名称存档冲突的情况
- [DllImport("__Internal")]
- private static extern void ResolveConflictingSavedGames(string name, string data);
- // 保存高分至某一个存档
- [DllImport("__Internal")]
- private static extern void SaveHighScore(string leaderboardId, long score);
- ///显示系统排行榜 可以跳转到自定的 game 排行榜 和 跳转到那个时间段
- [DllImport("__Internal")]
- private static extern void ShowSystomGameCenter(string leaderboardId, int time);
- ///获取排行榜信息 下载game center 某一排行榜中的分数及排名情况
- [DllImport("__Internal")]
- private static extern void DownLoadHighScore(int timeType, string leaderboardId);
- [DllImport("__Internal")]
- private static extern void DownLoadMyHighScore(int timeType, string leaderboardId);
- //显示游戏论坛webview 游戏ID加用户ID
- [DllImport("__Internal")]
- private static extern void ShowGameForumUserID(string gameId, string userId);
- //显示游戏论坛webview 游戏ID加email
- [DllImport("__Internal")]
- private static extern void ShowGameForumEmail(string gameId, string email);
- //去App Store中撰写评论
- [DllImport("__Internal")]
- private static extern void GotoAppStoreWriteReview(string appID);
- //调起系统自带应用内评分提示框
- [DllImport("__Internal")]
- private static extern void ShowSysReview();
- [DllImport("__Internal")]
- private static extern void AppsflyerValidate(string skuId, string transactionId);
- [DllImport("__Internal")]
- private static extern void ShareToFacebook(string imagePath);
-
- [DllImport("__Internal")]
- private static extern void InternalPayActive(string productId, string activeId);
-
- [DllImport("__Internal")]
- private static extern void UmengCustomEvent(string key, string dicJson);
-
- [DllImport("__Internal")]
- private static extern void FireBaseCustomEvent(string key, string dicJson);
- [DllImport("__Internal")]
- private static extern void AppsFlyerCustomEvent(string key, string dicJson);
- [DllImport("__Internal")]
- private static extern void FacebookCustomEvent(string key, string dicJson);
- [DllImport("__Internal")]
- private static extern void FacebookCustomEventSum(string key, double valueToSum, string dicJson);
- [DllImport("__Internal")]
- private static extern void UploadPhoto(string imagePath, string title);
-
- [DllImport("__Internal")]
- private static extern void UploadVideo(string imagePath ,string title);
- [DllImport("__Internal")]
- private static extern void OpenFriendFinderDeepLink();
- static PottingMobileiOS()
- {
- InitManager();
- }
- public static void _AppsflyerValidate(string skuId,string transactionId) {
- AppsflyerValidate(skuId,transactionId);
- }
- /// <summary>
- /// 显示webview
- /// </summary>
- /// <param name="url"></param>
- public static void _ShowWebView(string url)
- {
- ShowWebView(url);
- }
- /// <summary>
- /// 打开bbs
- /// </summary>
- /// <param name="bbsId">论坛id</param>
- /// <param name="userId">用户唯一标识</param>
- public static void _Showbbs(string bbsId, string userId)
- {
- ShowGameForumUserID(bbsId, userId);
- }
- /// <summary>
- /// 打开bbs
- /// </summary>
- /// <param name="bbsId">论坛id</param>
- /// <param name="emial">用户邮箱</param>
- public static void _ShowBBSWithEmail(string bbsId, string emial)
- {
- ShowGameForumEmail(bbsId,emial);
- }
- /// <summary>
- /// 显示推荐界面
- /// </summary>
- public static void _ShowGameRecommendView()
- {
- ShowGameRecommend();
- }
- /// <summary>
- /// 提交反馈接口
- /// </summary>
- /// <param name="msg">反馈信息</param>
- /// <param name="connect">联系方式</param>
- /// <param name="docInfo">存档</param>
- public static void _FeedBackSubmit(string msg, string connect, string docInfo)
- {
- FeedBackSubmit(msg, connect, docInfo);
- }
- public static void _LoginUseFacebook()
- {
- LoginUseFacebook();
- }
- /// <summary>
- /// Facebook退出登录
- /// </summary>
- public static void _LogOutFacebook()
- {
- FacebookLogOut();
- }
- /// <summary>
- /// 谷歌登录
- /// </summary>
- public static void _LoginUseGoogle()
- {
- }
- public static new void _LoginUseAppleSign()
- {
- LoginUseAppleSign();
- }
- public static void _querySkuDetail(string[] skus)
- {
- var jsonString = Json.Serialize(skus);
- querySkuDetail(jsonString);
- }
- public static void _GetADID(){
- }
-
- public static void _buyProductEvent(double price,string productId)
- {
- buyProduct(price, productId);
- }
- public static void InitializeSdk(string jsonAds, string facebookid, string app_flyers_id, string umengId,string umengChannel, string pangleAppID)
- {
- SetRepeatTime(AdManagerSettings.Instance.RepeatTime);
- InitUnityAdSdk(jsonAds, app_flyers_id, umengId, PottingMobileContent.APPSFLYER_DEV_KEY, umengChannel, pangleAppID);
- InitServices(PottingMobileContent.GameId, PottingMobileContent.GameSecret, PottingMobileContent.baseUrl);
- }
- /// <summary>
- /// 初始化sdk
- /// </summary>
- public static void InitializeSdk()
- {
- InitializeSdk(PottingMobileContent.AdJsonString, PottingMobileContent.FacebookAppid, PottingMobileContent.AppsFlyerAppid, PottingMobileContent.UmengAppid, PottingMobileContent.umengChannel, PottingMobileContent.PangleAppID);
- }
- /// <summary>
- /// 设置debug日志开关
- /// </summary>
- /// <param name="isDebug"></param>
- public static void withLogDebug(bool isDebug)
- {
- IsDebug(isDebug);
- }
- /// <summary>
- /// 开启定时自动加载广告
- /// </summary>
- public static void autoLoadAd()
- {
- AutoLoadAd();
- }
- /// <summary>
- /// 重置同意的链接
- /// </summary>
- public static void _consentInformationReset()
- {
- consentInformationReset();
- PottingLog("ios_consentInformationReset");
- }
- public static void _LoadAppOpenAd()
- {
- LoadAppOpenAd();
- PottingLog("ios_LoadAppOpenAd");
- }
- public static void _ShowAppOpenAd()
- {
- ShowAppOpenAd();
- PottingLog("ios_ShowAppOpenAd");
- }
- public static void _ShowInterstitialAd()
- {
- ShowInterstitialAd();
- PottingLog("ios_LoadRewardedVideoAd");
- }
- public static void _LoadInterstitialAd()
- {
- LoadInterstitialAd();
- PottingLog("ios_LoadRewardedVideoAd");
- }
- public static void _LoadRewardedInterstitialAd()
- {
- LoadRewardedInterstitialAd();
- PottingLog("ios_LoadRewardedInterstitialAd");
- }
- public static void _ShowRewardedInterstitialAd()
- {
- ShowRewardedInterstitialAd();
- PottingLog("ios_ShowRewardedInterstitialAd");
- }
- public static void _LoadRewardedVideoAd()
- {
- LoadRewardedVideoAd();
- PottingLog("ios_LoadRewardedVideoAd");
- }
-
- public static void _ShowRewardedVideoAd(string adid)
- {
- showRewardedVideoAd(adid);
- }
- public static void _ShowRewardedVideoAd()
- {
- ShowRewardedVideoAd();
- PottingLog("ios_ShowRewardedVideoAd");
- }
- public static bool _HasRewardedVideo()
- {
- return HasRewardedVideo();
- }
- public static bool _HasRewardedVideo(string adId)
- {
- return hasRewardedVideo(adId);
- }
- public static void _LoadAndShowBannerAd(AdPosition adPostion)
- {
- _LoadAndShowBannerAd(adPostion, AdSize.H_50);
- }
- public static void _LoadAndShowBannerAd(AdPosition adPostion, AdSize adSize)
- {
- LoadAndShowBannerAd(adPostion.ToString(), (int)adSize);
- }
- public static void _HideBannerAd()
- {
- HideBannerAd();
- }
- //充值购买虚拟货币(金币、宝石、金票等), cash-现金数额,source-购买渠道,coin-虚拟货币数额
- public static void _Pay(double cash, int source, double coin)
- {
- Pay(cash, source, coin);
- PottingLog("_Pay");
- }
- //充值购买虚拟道具, cash-现金数额,source-购买渠道,coin-虚拟货币数额
- public static void _PayItem(double cash, int source, string itemName, int amount, double price)
- {
- PayItem(cash, source, itemName, amount, price);
- PottingLog("_PayItem");
- }
- //游戏内部货币购买道具操作,itemName-道具名称,amount-数量,price-价格
- public static void _Buy(string itemName, int amount, double price)
- {
- Buy(itemName, amount, price);
- PottingLog("_Buy");
- }
- //游戏内消耗道具操作,itemName-道具名称,amount-数量,price-价格
- public static void _Use(string itemName, int amount, double price)
- {
- Use(itemName, amount, price);
- PottingLog("_Use");
- }
- //开始关卡,levelName-关卡名称
- public static void _StartLevel(string levelName)
- {
- StartLevel(levelName);
- PottingLog("_StartLevel");
- }
- //关卡完成,levelName-关卡名称
- public static void _FinishLevel(string levelName)
- {
- FinishLevel(levelName);
- PottingLog("_FinishLevel");
- }
- //关卡失败,levelName-关卡名称
- public static void _FailLevel(string levelName)
- {
- FailLevel(levelName);
- PottingLog("_FailLevel");
- }
- //得到虚拟货币奖励,coin-虚拟货币数额,source-获取渠道(例:游戏奖励、玩家赠送、节日赠送、打怪掉落等)
- public static void _Bonus(double coin, int source)
- {
- Bonus(coin, source);
- PottingLog("_Bonus");
- }
- //得到道具奖励,itemName-道具名称,amount-数量,price-价格,source-奖励方法
- public static void _BonusItem(string itemName, int amount, double price, int source)
- {
- BonusItem(itemName, amount, price, source);
- PottingLog("_BonusItem");
- }
- //内购相关函数
- //调起内购,productId-内购产品ID
- public static void _InternalPay(string productId, string actId = "",string accountId = "youloft", string profileId
- = "youloft")
- {
- InternalPayActive(productId,actId);
- }
- public static void _LoginUseGoogleInClient(string clientId )
- {
- }
- public static void _InitApplePaySharedSecretKey(string sharedSecret)
- {
- InitApplePaySharedSecretKey(sharedSecret);
- }
- //恢复购买相关函数
- public static void _Restore()
- {
- Restore();
- }
- public static void Subscription(string productId,string actId = "")
- {
- InternalPayActive(productId,actId);
- }
- public static void CheckPurchases(string skuType)
- {
- }
- public static void QueryPurchases(string skuType)
- {
- }
- public static void QueryHistoryPurchases(string skuType)
- {
- }
- public static void _CustomEvent(string key, Dictionary<string, string> lable)
- {
- var jsonString = Json.Serialize(lable);
- CustomEvent(key, jsonString);
- PottingLog("_CustomEvent-" + key);
- }
-
- /// <summary>
- /// facebook自定义埋点
- /// </summary>
- /// <param name="key">事件名字</param>
- /// <param name="lable">事件参数</param>
- public static void _CustomEventFacebook(string key, Dictionary<string, string> lable)
- {
- var jsonString = Json.Serialize(lable);
- FacebookCustomEvent(key, jsonString);
- PottingLog("_CustomEvent-" + key);
- }
- public static void _CustomLogEventFacebook(string key, double valueToSum, Dictionary<string, string> lable)
- {
- var jsonString = Json.Serialize(lable);
- FacebookCustomEventSum(key, valueToSum, jsonString);
- PottingLog("_CustomEvent-" + key);
- }
-
- /// <summary>
- /// firebase自定义埋点
- /// </summary>
- /// <param name="key">事件名字</param>
- /// <param name="lable">事件参数</param>
- public static void _CustomEventFirebase(string key, Dictionary<string, string> lable)
- {
- var jsonString = Json.Serialize(lable);
- FireBaseCustomEvent(key, jsonString);
- PottingLog("_CustomEvent-" + key);
- }
-
- /// <summary>
- /// appsflyer自定义埋点
- /// </summary>
- /// <param name="key">事件名字</param>
- /// <param name="lable">事件参数</param>
- public static void _CustomEventAppsflyer(string key, Dictionary<string, string> lable)
- {
- var jsonString = Json.Serialize(lable);
- AppsFlyerCustomEvent(key, jsonString);
- PottingLog("_CustomEvent-" + key);
- }
-
- /// <summary>
- /// umeng自定义埋点
- /// </summary>
- /// <param name="key">事件名字</param>
- /// <param name="lable">事件参数</param>
- public static void _CustomEventUmeng(string key, Dictionary<string, string> lable)
- {
- var jsonString = Json.Serialize(lable);
- UmengCustomEvent(key, jsonString);
- PottingLog("_CustomEvent-" + key);
- }
- //本地推送
- public static void _SetLocalNotification(int identifier, string title, string body, int seconds)
- {
- SetLocalNotification(identifier, title, body, seconds);
- }
- public static void _CancelLocalNotification(int noticeId)
- {
- CancleLocalNotification(noticeId);
- }
- public static void _CancelAllLocalNotification()
- {
- CancleAllLocalNotification();
- }
- public static void _ShareText(string extraText)
- {
- shareText(extraText);
- }
- /// <summary>
- /// 游戏登录
- /// </summary>
- public static void _GameLogin()
- {
- Social.localUser.Authenticate(b => { });
- GameCenterLogin();
- }
- /// <summary>
- /// 加载默认名称存档
- /// </summary>
- public static void _LoadGame()
- {
- DownloadOneSavedAcrive();
- }
- /// <summary>
- /// 上传默认名称存档
- /// </summary>
- /// <param name="data">存档数据</param>
- public static void _SavedGame(string data)
- {
- UploadAcrive(data);
- }
- public static void _LoadGame(string name)
- {
- DownloadOneSavedAcriveHasName(name);
- }
- public static void _SavedGame(string name, string data)
- {
- UploadAcriveHasName(name, data);
- }
- public static void _DeleteGame(string name)
- {
- DeleteOneSavedAcrive(name);
- }
- public static void _LoadAllGame()
- {
- DownloadAllSavedAcrive();
- }
- /// <summary>
- /// 解决存档冲突,将同名的多个存档变为一个存档解决冲突,需要程序做判断使用那一份存档或让用户选择一份存档
- /// </summary>
- /// <param name="name">冲突的存档名称</param>
- /// <param name="data">确认需要保存的存档</param>
- public static void _ResolveConflictGame(string name, string data)
- {
- ResolveConflictingSavedGames(name, data);
- }
- /// <summary>
- /// 显示排行榜
- /// </summary>
- ///
- public static void _ShowLeaderBoard()
- {
- ShowSystomGameCenter(null, (int)TimeSpan.TIME_SPAN_ALL_TIME);
- }
- /// <summary>
- /// 显示指定排行榜
- /// </summary>
- /// <param name="id">排行榜id</param>
- public static void _ShowLeaderBoard(string id, TimeSpan timeSpan)
- {
- ShowSystomGameCenter(id,(int)timeSpan);
- }
- /// <summary>
- /// 拉取排行榜个人信息
- /// </summary>
- /// <param name="id">排行榜id</param>
- public static void _LoadLeaderBoard(string id, TimeSpan timeSpan)
- {
- DownLoadMyHighScore((int)timeSpan, id);
- }
- /// <summary>
- /// 提交排行榜分数
- /// </summary>
- /// <param name="id">排行榜id</param>
- /// <param name="score">分数</param>
- public static void _SubmitLeaderBoardScore(string id, long score)
- {
- SaveHighScore(id,score);
- }
-
- /// <summary>
- /// 打开谷歌应用内评论
- /// </summary>
- public static void launchReview()
- {
- ShowSysReview();
- }
- public static void _YouLoftGameInfo(Dictionary<string, string> lable)
- {
- _CustomEvent("youloftgameinfo",lable);
- }
- public static void _ShareImgByFacebook(string path)
- {
- ShareToFacebook(path);
- }
- /// <summary>
- /// 邀请Facebook好友
- /// </summary>
- public static void _openFriendFinderDeepLink()
- {
- OpenFriendFinderDeepLink();
- }
- /// <summary>
- /// 上传到facebook
- /// </summary>
- /// <param name="path"></param>
- public static void _uploadPhoto(string path)
- {
- UploadPhoto(path, "");
- }
- /// <summary>
- /// 上传到facebook
- /// </summary>
- /// <param name="path"></param>
- public static void _uploadVideo(string path)
- {
- UploadVideo(path, "");
- }
- /// <summary>
- /// 打开客服反馈页面
- /// </summary>
- public static void _showFeedBackHtml(Dictionary<string, string> lable = null)
- {
- var jsonString = Json.Serialize(lable);
- ShowFeedBackHtml(jsonString);
- }
-
- /// <summary>
- /// /谷歌退出登录
- /// </summary>
- public static void _LogOutGoogle()
- {
- }
- public static void _hideLoading()
- {
- }
- public static void _checkLicense()
- {
- }
- }
- #endif
|