Beispiel #1
0
 public static void DispatchEventWithResponseCallback(ACPExtensionEvent acpExtensionEvent, AdobeEventCallback responseCallback, AdobeExtensionErrorCallback errorCallback)
 {
     if (acpExtensionEvent == null)
     {
         Debug.Log("Unable to perform DispatchEventWithResponseCallback, acpExtensionEvent is null");
         return;
     }
                 #if UNITY_ANDROID && !UNITY_EDITOR
     AndroidJavaObject eventObj = ACPHelpers.GetAdobeEventFromACPExtensionEvent(acpExtensionEvent);
     mobileCore.CallStatic <Boolean>("dispatchEventWithResponseCallback", eventObj, new EventCallback(responseCallback), new ExtensionErrorCallback(errorCallback));
                 #elif UNITY_IPHONE && !UNITY_EDITOR
     if (acpExtensionEvent.eventName == null || acpExtensionEvent.eventType == null || acpExtensionEvent.eventSource == null)
     {
         Debug.Log("Unable to perform DispatchEventWithResponseCallback, input params are null");
         return;
     }
     string jsonDataEvent = ACPHelpers.JsonStringFromDictionary(acpExtensionEvent.eventData);
     if (jsonDataEvent == null)
     {
         Debug.Log("Unable to perform DispatchEventWithResponseCallback, invalid event data");
         return;
     }
     acp_DispatchEventWithResponseCallback(acpExtensionEvent.eventName, acpExtensionEvent.eventType, acpExtensionEvent.eventSource, jsonDataEvent, responseCallback, errorCallback);
                 #endif
 }
Beispiel #2
0
 public EventCallback(AdobeEventCallback callback) : base("com.adobe.marketing.mobile.AdobeCallback")
 {
     redirectedDelegate = callback;
 }
Beispiel #3
0
 private static extern void acp_DispatchEventWithResponseCallback(string eventName,
                                                                  string eventType,
                                                                  string eventSource,
                                                                  string cData,
                                                                  AdobeEventCallback responseCallback,
                                                                  AdobeExtensionErrorCallback errorCallback);