update: 更新回调接口, 新增广告初始化默认配置接口

deeplink
胡宇飞 2024-03-31 18:08:26 +08:00
parent b2fa553fb7
commit fec486e8a6
3 changed files with 11 additions and 6 deletions

View File

@ -228,7 +228,12 @@ namespace Guru
private static bool _initAdsCompleted = false; private static bool _initAdsCompleted = false;
public static AdsInitSpec GetDefaultAdsSpec()
{
return AdsInitSpec.BuildDefault(InitConfig.AutoLoadWhenAdsReady, IsDebugMode);
}
/// <summary> /// <summary>
/// 启动广告服务 /// 启动广告服务
/// </summary> /// </summary>

View File

@ -196,11 +196,11 @@ namespace Guru
remove => _onDebuggerDisplayed -= value; remove => _onDebuggerDisplayed -= value;
} }
internal static Action<bool> _onAuthUserResult; internal static Action<bool> _onUserAuthResult;
public static event Action<bool> OnAuthUserResult public static event Action<bool> OnUserAuthResult
{ {
add => _onAuthUserResult += value; add => _onUserAuthResult += value;
remove => _onAuthUserResult -= value; remove => _onUserAuthResult -= value;
} }
internal static Action<bool> _onFirebaseAuthResult; internal static Action<bool> _onFirebaseAuthResult;

View File

@ -155,7 +155,7 @@ namespace Guru
{ {
success = false; success = false;
} }
Callbacks.SDK._onAuthUserResult?.Invoke(success); Callbacks.SDK._onUserAuthResult?.Invoke(success);
} }
private void OnFirebaseAuthResult(bool success) private void OnFirebaseAuthResult(bool success)