update: 更新回调接口, 新增广告初始化默认配置接口
parent
b2fa553fb7
commit
fec486e8a6
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue