Exemple #1
0
 public static void spendVirtualCurrency()
 {
     if (initialized())
     {
         Instance.AMRSdk.spendVirtualCurrency();
     }
     else
     {
         AMRUtil.Log("<AMRSDK> AMRSDK has not been initialized.");
     }
 }
Exemple #2
0
 public static void setAdjustUserId(string adjustUserId)
 {
     if (initialized())
     {
         Instance.AMRSdk.setAdjustUserId(adjustUserId);
     }
     else
     {
         AMRUtil.Log("<AMRSDK> AMRSDK has not been initialized.");
     }
 }
Exemple #3
0
 public static void setClientCampaignId(string campaignId)
 {
     if (initialized())
     {
         if (!String.IsNullOrEmpty(campaignId))
         {
             Instance.AMRSdk.setClientCampaignId(campaignId);
         }
         else
         {
             //AMRUtil.Log("<AMRSDK> campaignId is null or empty!");
         }
     }
     else
     {
         AMRUtil.Log("<AMRSDK> AMRSDK has not been initialized.");
     }
 }
Exemple #4
0
        public static void startWithConfig(AMRSdkConfig config)
        {
            AMRUtil.Log("<AMRSDK> AMR Plugin Version: [" + AMR_PLUGIN_VERSION + "]");

            if (Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer)
            {
                Instance.Config = config;
                if (config.SubjectToGDPR != null || config.UserConsent != null)
                {
                    Instance.startWithAppIdConsent(config.ApplicationIdIOS, config.ApplicationIdAndroid, config.SubjectToGDPR, config.UserConsent, config.IsUserChild);
                }
                else
                {
                    Instance.startWithAppId(config.ApplicationIdIOS, config.ApplicationIdAndroid, config.IsUserChild);
                }
                Instance.isInitialized = true;
            }
            else
            {
                AMRUtil.Log("<AMRSDK> AMRSDK only supports Android and iOS platforms.");
            }
        }