You've already forked Commercialization.topon
update 1.1.25
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user