Exemple #1
0
 /**
  * 向统计包传递CustomerId(仅Android支持)
  * 请在初始化SDK之前调用
  * 对于非GP的包,可以传androidid
  * Version 3004 and above support this method
  */
 public static void setCustomerIdForAndroid(string customerId)
 {
     if (null == polyCall)
     {
         polyCall = new PolyADCall();
     }
     polyCall.setCustomerId(customerId);
 }
Exemple #2
0
 /**
  * 判断用户是否属于欧盟地区
  * 异步回调
  * Version 3003 and above support this method
  */
 public static void isEuropeanUnionUser(Action <bool, string> callback)
 {
     if (polyCall == null)
     {
         polyCall = new PolyADCall();
     }
     polyCall.isEuropeanUnionUser(callback);
 }
Exemple #3
0
 /**
  * 设置所有的回调均在游戏活跃时发生
  * 对于unity 17.4的版本,在测试中发现苹果手机无法正确调用did_open的回调而且也无法监听OnApplicationPause(bool pauseStatus)
  * 有监于此,增加此方法解决回调问题
  * Version 3004 and above support this method
  */
 public static void runCallbackAfterAppFocus(bool enable)
 {
     if (polyCall == null)
     {
         polyCall = new PolyADCall();
     }
     polyCall.RunCallbackAfterAppFocus(enable);
 }
Exemple #4
0
 /**
  * 获取用户授权结果
  * return UPConstant.UPAccessPrivacyInfoStatusEnum
  * Version 3003 and above support this method
  */
 public static UPConstant.UPAccessPrivacyInfoStatusEnum getAccessPrivacyInfoStatus()
 {
     if (polyCall == null)
     {
         polyCall = new PolyADCall();
     }
     return(polyCall.getAccessPrivacyInfoStatus());
 }
Exemple #5
0
 /**
  * 外部进行GDPR授权时,将用户授权结果同步到UPSDK时,调用此方法
  * @param enumValue
  * Version 3003 and above support this method
  */
 public static void updateAccessPrivacyInfoStatus(UPConstant.UPAccessPrivacyInfoStatusEnum enumValue)
 {
     if (polyCall == null)
     {
         polyCall = new PolyADCall();
     }
     polyCall.setAccessPrivacyInfoStatus(enumValue);
 }
Exemple #6
0
 /**
  * 弹出授权窗口,向用户说明重要数据收集的情况并询问用户是否同意授权
  * 如果用户拒绝授权将放弃相关数据的收集
  * @param callback
  * Version 3003 and above support this method
  */
 public static void notifyAccessPrivacyInfoStatus(Action <UPConstant.UPAccessPrivacyInfoStatusEnum, string> callback)
 {
     if (polyCall == null)
     {
         polyCall = new PolyADCall();
     }
     polyCall.notifyAccessPrivacyInfoStatus(callback);
 }
Exemple #7
0
 /*
  * 初始化avidly的聚合广告
  * 即使多次调用,此方法也仅会初始化一次
  * @param zone:0,海外;1,中国大陆;2,根据IP自动定位区域
  * 具体引用:SDKZONE_FOREIGN,SDKZONE_CHINA,SDKZONE_AUTO
  * from 2030,initPolyAdSDK()增加zone参数
  */
 public static string initPolyAdSDK(int zone)
 {
     if (_sInited)
     {
         return("initPolyAdSDK finished");
     }
     if (polyCall == null)
     {
         polyCall = new PolyADCall();
     }
     _sInited = true;
     return(polyCall.initSDK(zone));
 }
 public void setPolyADCall(PolyADCall call)
 {
     adCall = call;
 }