67 lines
1.8 KiB
C#
67 lines
1.8 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace GuruSDKService
|
|
{
|
|
public interface IGuruSDKServiceImp
|
|
{
|
|
#region GuruSDKInitConfig初始化参数
|
|
|
|
string CustomServiceKey { get; }
|
|
string BannerBackgroundColor { get; }
|
|
bool IsNoAD { get; }
|
|
bool IsIAPEnabled { get; }
|
|
bool IsDebugMode { get; }
|
|
Dictionary<string, object> GetDefaultRemoteData();
|
|
byte[] GetGooglePlayTangleData();
|
|
byte[] GetAppleTangleData();
|
|
|
|
#endregion
|
|
|
|
#region Model映射
|
|
|
|
int b_level { get; set; }
|
|
int b_play { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region Callbacks回调
|
|
|
|
void OnAppPaused(bool paused);
|
|
void OnAppQuit();
|
|
|
|
void OnFirebaseReady(bool success);
|
|
void OnGuruServiceReady();
|
|
void OnUserAuthResult(bool success);
|
|
void OnFirebaseAuthResult(bool success);
|
|
|
|
void OnAttResult(int authorizationTrackingStatus);
|
|
void OnConsentResult(int statusCode);
|
|
|
|
void OnAdsInitComplete();
|
|
void OnBannerADLoaded();
|
|
void OnInterstitialADLoaded();
|
|
void OnInterstitialADFailed();
|
|
void OnRewardedADLoaded();
|
|
void OnRewardADFailed();
|
|
|
|
void OnRemoteFetchComplete(bool success);
|
|
|
|
#endregion
|
|
|
|
#region IAP回调
|
|
|
|
void OnIAPInitStart();
|
|
void OnIAPInitComplete(bool success);
|
|
void OnPurchaseStart(string productName);
|
|
void OnPurchaseEnd(string productName, bool success);
|
|
void OnPurchaseFailed(string productName, string reason);
|
|
void OnIAPRestored(bool success, string msg);
|
|
|
|
void ShowIAPBuyLoadingView();
|
|
void CloseIAPLoadingView();
|
|
void IAPBuySuccessTip();
|
|
void IAPBuyFailTip();
|
|
|
|
#endregion
|
|
}
|
|
} |