update 1.1.25

This commit is contained in:
2024-03-07 15:23:32 +08:00
parent 1871048ee6
commit 2a41d5d5fb
225 changed files with 929 additions and 343 deletions

View File

@@ -12,6 +12,8 @@ namespace AnyThinkAds.iOS {
static private ATGetUserLocationListener locationListener;
static private ATGetAreaListener areaListener;
static private ATConsentDismissListener umpListener;
public ATSDKAPIClient () {
Debug.Log("Unity:ATSDKAPIClient::ATSDKAPIClient()");
}
@@ -43,6 +45,13 @@ namespace AnyThinkAds.iOS {
return 0;
}
[MonoPInvokeCallback(typeof(Func<string, int>))]
static public int DidUMP(string location)
{
if (umpListener != null) { umpListener.onConsentDismiss(); }
return 0;
}
[MonoPInvokeCallback(typeof(Func<string, int>))]
static public int GetAreaInfo(string msg)
{
@@ -81,10 +90,17 @@ namespace AnyThinkAds.iOS {
public void showGDPRAuth() {
Debug.Log("Unity:ATSDKAPIClient::showGDPRAuth()");
ATManager.ShowGDPRAuthDialog();
// ATManager.showGDPRAuth();
}
public void setPurchaseFlag() {
public void showGDPRConsentDialog(ATConsentDismissListener listener)
{
Debug.Log("Unity:ATSDKAPIClient::showGDPRConsentDialog()");
ATSDKAPIClient.umpListener = listener;
ATManager.showGDPRConsentDialog(DidUMP);
}
public void setPurchaseFlag() {
ATManager.setPurchaseFlag();
}