Exemple #1
0
 public static void SetPrivacyStatus(ACPMobilePrivacyStatus privacyStatus)
 {
                 #if UNITY_ANDROID && !UNITY_EDITOR
     using (var privacyClass = new AndroidJavaClass("com.adobe.marketing.mobile.MobilePrivacyStatus"))
     {
         var privacyStatusObject = privacyClass.GetStatic <AndroidJavaObject>(privacyStatus.ToString());
         mobileCore.CallStatic("setPrivacyStatus", privacyStatusObject);
     }
                 #elif UNITY_IPHONE && !UNITY_EDITOR
     acp_SetPrivacyStatus((int)privacyStatus);
                 #endif
 }
Exemple #2
0
 // callbacks
 private void handleCallback(ACPMobilePrivacyStatus privacyStatus)
 {
     Console.WriteLine("Privacy status: " + privacyStatus.ToString());
 }